South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
I think codeproject or asp.net had a article about this.I'm far from being an expert on .NET, but doesn't using master pages have a negative SEO affect, or is there a way to change the meta tags per page?
I'm far from being an expert on .NET, but doesn't using master pages have a negative SEO affect, or is there a way to change the meta tags per page?
lol, looks like I got some competition with the most wack code ever!I couldtell you the story of the "experienced" guy who used a temp database table to sort a stringlist but it would make you cry.
He did use master pages, but to set the theme on the pre_init, he copied and pasted the same code 1000000000 times. Well different ways to skin a cat, but this way was just insane.
I'll post the code but you might lose few IQ points
You must see it... scary stuff.
if(y==b){x=true;}else{x=false;}How do you write an if statement in one line in the C-type languages?
bool x = (y==b) ? true : false;
don't have a compiler.. but that is it...
Edit :
y and b is just variables.
used to, but don't any more.You guys read http://thedailywtf.com ?
Exactly the same thing.
//C/C++
int x=5, y;
x>10 ? y = 3 : y=2; //Don't assign this to anything
//C#
y = x>10 ? 3 : 2
//C/C++
x>5 ? y = 3 : printf("Hello"); //Sometimes an int, other times just Hello
//C#
//Not allowed