Category: ASP.NET

What are the special directories in ASP.NET 2.0

When creating a new ASP.NET 2.0 website in Visual Studio 2005 you may notice the App_Data and/or the App_Browsers directories. App_Data is a directory reserved for databases and database related files, such as .mdb (Microsoft Access Database), .mdf (Microsoft SQL Express) or XML files. The main advantage of using this folder over any other folder is the preconfigured access permissions, […]

How can I set the ASP.NET validators to be visible by default?

To make the validators on a page visible by default you can call the page’s Validate() method when it is loading, as in: private void Page_Load(object sender, System.EventArgs e){    if (!IsPostBack) { Page.Validate(); }} Or if you want to make visible only one validator, use: private void Page_Load(object sender, System.EventArgs e){ if (!IsPostBack) {    // Where reqEmail is […]

Back To Top