Here's a
WTF I ran into the other day (partially pseudocode):
XmlDataDocument goto = new XmlDataDocument();
goto.Load(".\\locations.xml");
XmlNode gotoThisUrl;
if(referer == "http://www.someplace.com/directory1")
{
gotoThisURL = goto.SelectSingleNode("gotoOnDirectory1");
}
else if (referer == "http://www.someplaceelse.com/directory2")
{
gotoThisURL = goto.SelectSingleNode("gotoOnDirectory2");
}
Response.Redirect(gotoThisURL.InnerText.Trim(), true);
It was actually a bit more complex than that (probably 3x as many lines), but with the same purpose. There were literally two places from which to choose to direct the request. And no, the application wouldn't take incredibly long to compile. I felt like it was quite a bit of overkill.
Hey! Why don't you make your life easier and subscribe to the full post
or short blurb RSS feed? I'm so confident you'll love my smelly pasta plate
wisdom that I'm offering a no-strings-attached, lifetime money back guarantee!
Leave a comment
There are no comments for this entry yet.
Leave a comment