Frequently Encountered Bugs

If you're a veteran VBScript/ASP developer, here are a few things to watch out for as you debug your ASP.NET pages. These are the kinds of mistakes you'll probably find yourself making as you transition from ASP to ASP.NET programming.

Runat=”Server”

Script blocks and controls all need to be marked with the attribute RUNAT="Server" if you want them to be processed by ASP.NET. It's especially common to forget this on FORM tags. Remember, if you want to take advantage of ASP.NET's form-handling capabilities, the form itself must have a RUNAT="Server" attribute. Further, you can only have one form per page that is configured this way. If you think you need more than one form, you probably don't. Consider using more than ...

Get ASP.NET by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.