Image representing the FAQs category

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

Published 15 years ago

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 ...
Image representing the FAQs category

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

Published 15 years ago

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 ...
Image representing the FAQs category

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

Published 16 years ago

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 ...
Image representing the FAQs category

How Do I Upload Files In ASP.NET 2?

Published 16 years ago

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 ...
Image representing the FAQs category

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

Published 17 years ago

When you have installed ASP.NET on Windows Server 2003, you may receive the following 404 - Page Not Found error:

Read on ...
Image representing the FAQs category

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

Published 17 years ago

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 ...
  • «First
  • Previous
  • 1
  • Next
  • »Last

Mobile: False

Crawler: True

I: False