How Do I Dynamically Switch the DefaultButton at Run-Time?

Posted by: Imar Spaanjaars at Saturday, January 14, 2006 5:46:40 PM in: ASP.NET 2.0
In a previous article I showed you how to use the ASP.NET 2.0 DefaultFocus and DefaultButton features inside a Master Page. You saw how you could use the UniqueID of a control to pass the right control ID to the WebForm_AutoFocus JavaScript method. In this short article, I'll show you how you can use another client side script method to dynamically switch the DefaultButton at run-time.
Read on ...

How Do I Set the DefaultFocus or DefaultButton in a Page Based on a Master Page in ASP.NET 2.0?

Posted by: Imar Spaanjaars at Thursday, November 03, 2005 8:41:33 PM in: ASP.NET 2.0
You may be aware of the new DefaultButton and DefaultFocus properties that a few ASP.NET 2.0 controls, including the HtmlForm have. These properties allow you to determine which button gets "clicked" when you hit enter on the page, and which form control gets the focus when the page loads. (If you're not familiar with them, check out this MSDN help file) But how do you use this feature in a page based on a Master Page?
Read on ...

Why Do I Get Unexpected 404 Errors in Visual Web Developer 2005 Express Edition?

Posted by: Imar Spaanjaars at Saturday, May 14, 2005 3:31:51 PM in: ASP.NET 2.0
Today I was experiencing unexpected 404 "The resource cannot be found" errors when working with Visual Web Developer 2005 Express Edition beta 2 in combination with the ASP.NET Development Server. No matter what I tried, and what file I tried to open, I kept getting the same error.
Read on ...

How Do I Upload Files In ASP.NET 2?

Posted by: Imar Spaanjaars at Saturday, October 02, 2004 9:49:07 PM in: ASP.NET 2.0

Update!! 05-24-2006 - Updated the old beta code to the RTM version of ASP.NET 2.0. Also updated the downloadable source file.

Uploading files in ASP.NET is easier than ever. All you need to do is add the new <asp:FileUpload> control to your page and write a bit of code that deals with the uploaded file once the page is posted back to the server.

Read on ...

Why Do I Receive a "The page cannot be found" Error With ASP.NET On Windows Server 2003?

Posted by: Imar Spaanjaars at Saturday, February 21, 2004 11:24:02 AM in: ASP.NET 2.0
When you have installed ASP.NET on Windows Server 2003, you may receive the following 404 - Page Not Found error:
Read on ...

How Do I Store and Access My Connection Strings in ASP.NET 2?

Posted by: Imar Spaanjaars at Thursday, February 19, 2004 10:13:58 AM in: ASP.NET 2.0
With ASP.NET 1.0 and 1.1 many people stored their connection strings in the Web.config file under the appSettings element. But is there a better way to save these settings in ASP.NET 2.0?
Read on ... 1