How to declare Microsoft VisualStudio Unit Testing method
Microsoft VisualStudio Unit Testing method should be decorated with a [TestMethod]
attribute.
[TestMethod]
public void TestAddMethod()
{
}
[TestMethod]
attribute.[TestMethod]
public void TestAddMethod()
{
}
[TestClass]
attribute[TestClass]
public class UnitTestMath
{
[TestMethod]
public void TestAdd()
{
}
}
Example in C# :
•
|
The Machine.config file
|
•
|
The Web.config file
|
•
|
Individual Web Forms (.aspx files)
|
•
|
Web User Controls (.ascx files)
|
When you set the value of the AutoEventWireup attribute to true, the ASP.NET runtime does not require events to specify event handlers like Page_Load or Page_Init.
How to validate dropdown list using RequiredField validator
Answer : Set initialvalue property of RequiredField validator to default value of dropdown list.
Question : What does EnableViewState=true page property means ?
Answer : EnableViewState=true page property helps enables viewstate of page so all user inputs in controls in page is retained across postbacks.
Question : What are various event handlers listed in Global.asax file ?
Answer : Various event handlers listed in Global.asax file :
1. Application_Error
2. Application_Start
3. Application_End
4. Session_Start
5. Session_End
Question : How can user locale information accessed in Asp.net application
Answer : Using System.Web.UI.Page.Culture property