26 Aug 2009

ASP.NET Web Form Code Blocks

Just found this neato summary of all the different ASP.NET web form code-block / data-binding syntax options, i.e. <%= , <%# etc.

http://quickstarts.asp.net/QuickstartV20/aspnet/doc/pages/syntax.aspx

It was nice to put a name to the different syntax types :) Also, I didn't know about the ability to register C# variables inline i.e <object id="DateOfBirth" class="System.DateTime" runat="server"> , although I'm not sure when I would use it :)

Also, this blog posting helped clear up my "voodoo" perception of the Container and Eval syntax available when databinding in a template:

http://weblogs.asp.net/rajbk/archive/2004/07/20/what-s-the-deal-with-databinder-eval-and-container-dataitem.aspx

7 Aug 2009

Running VS2003 on Vista Business with debugging

It's a pain in the arse!

1. Install VS2003
2. Install .NET 1.1 SP1 (download from MS)
3. In Control Panel > Classic View > Programs and Features > Turn Windows Features On or Off :

IIS > Web management Tools > IIS 6 Management Compatibility
IIS > Web management Tools > Management Console
IIS > World Wide Web Services > Security > Basic Authentication
IIS > World Wide Web Services > Security > Windows Authentication

4. In IIS7 (Control Panel > Classic View > Administrative Tools > IIS Manager)

- Click on the Server node and make sure you're in Features View
- Select ISAPI and CGI Restrictions
- Make sure ASP.NET v1.1 is "Allowed"

5. In IIS7 (Control Panel > Classic View > Administrative Tools > IIS Manager)

- Click on the web site node (or your V1.1 application if you've installed it under the default node)
- Click on Authentication and enable Windows Authentication

6. In Local Users and Groups (Control Panel > Classic View > Administrative Tools > Computer Management)

- For Group "Debugger Users", add your user account and the IUSR account
- For Group "VS Developers", add your user account and the IUSR account
If I helped you out today, you can buy me a beer below. Cheers!