This is an update to my original post Dynamic Robots with ASP.NET 2.0, which was written for IIS6. IIS7 makes this process even easier! Use this approach to deliver different robots.txt files depending on whether you site is being crawled in http or https (or just to present your robots.txt file programatically).
Let’s take a look…
Why do you care? So. Many. Reasons.
While at work yesterday, I saw a whole bunch of code like if (memberid > 0) parameters.Add(new SqlParameter(“@memberid”, memberid)); if (groupid > 0) parameters.Add(new SqlParameter(“@groupid”, groupid)); if (industryid > 0) parameters.Add(new SqlParameter(“@industryid”, industryid)); … and so on. It would be easy enough to squeeze it down to something like InsertIfGz(“@memberid”, memberid); InsertIfGz(“@groupid”, groupid); but it [...]
Today, I was tasked with making some Asp:Login and Asp:CreateUserWizard controls work. Specifically, the enter button was acting with an effluence inherent only to Asp.net: it was submitting the search button. After playing with various schemes, I settled upon the following for the Login control: <asp:Panel ID=”pnlLogin” runat=”server” DefaultButton=”lgMain$LoginButton”> <asp:Login runat=”server” ID=”lgMain” /> </asp:Panel> I [...]
I just installed Ubuntu 9.04 (64-bit) on a new machine and am currently in the middle of compiling LinuxSampler, and for some reason had to make source changes to the latest stable to get it to compile. For starters, I had to run configure with –prefix=/usr. Don’t know whether that’s a 64-bit thing, a me-being-noob [...]
Everyone has their own regular expression implementation; especially text editors. One is good, while the rest range from absurd to almost usable. Sometimes, despite your best efforts, you’ll find yourself in a strange environment needing to do some funky regex fu. So for the sake of argument, let’s imagine we have a standard no-frills regex [...]
The other day my friend Matt Stow mentioned Mootools as a lightweight alternative to prototype and scriptaculous, so I decided to check it out. Yet another collapsible panel! On the whole, I think I’m impressed with Mootools/Moofx. Firstly, check out the download page. It lets you choose and pick exactly what components you want, it [...]