What is "customErrors …" tag means in web.config?

It is use to display applications errors or not. “On” Always display custom (friendly) messages. “Off” Always display detailed ASP.NET error information. “RemoteOnly” Display custom (friendly) messages only to users not running on the local Web server. This setting is recommended for security purposes, so that you do not display… Continue reading

What is URL Rewriting and how to implement it?

Add Global.asax file. Using Global.asax u can rewrite ur URL. just add this function. void Application_BeginRequest(object sender, EventArgs e) { //in this file u can write code for rewrite URL if (url is not in ur root path) { httpContext.RewritePath(reWritePage1); } } Or void Application_BeginRequest(object sender, EventArgs e) { System.Web.HttpContext… Continue reading

What are different types of directives in .NET?

  @Page: Defines page-specific attributes used by the ASP.NET page parser and compiler. Can be included only in .aspx files <%@ Page AspCompat=”TRUE” language=”C#” %> @Control: Defines control-specific attributes used by the ASP.NET page parser and compiler. Can be included only in .ascx files. <%@ Control Language=”VB” EnableViewState=”false” %> @Import:… Continue reading