Microsoft VisualStudio Unit Testing method should be decorated with a [TestMethod] attribute. Example in C#: [TestMethod]public void TestAddMethod(){ }
Category: ASP.NET Interview Questions
How to declare Microsoft VisualStudio Unit Testing class
Microsoft VisualStudio Unit Testing class should be declared with a [TestClass] attribute Example in C# : [TestClass] public class UnitTestMath { [TestMethod] public void TestAdd() { […]
Name the namespace used for Microsoft Visual Studio Unit Testing ?
Namespace used for Microsoft Visual Studio Unit Testing –Microsoft.VisualStudio.TestTools.UnitTesting Example in C# : using System;using System.Text;using System.Collections.Generic;using System.Linq;using Microsoft.VisualStudio.TestTools.UnitTesting;namespace TestProjectMath{ [TestClass] public class […]
Where to define AutoEventWireup attribute in ASP.NET
One can specify AutoEventWireup attribute in the following locations: • The Machine.config file • The Web.config file • Individual Web Forms (.aspx files) • Web […]
What is AutoEventWireup attribute in ASP.NET
AutoEventWireup attribute is set to false by default in the .aspx page and event handlers are automatically created. When you set the value of the […]
What is MVC ?
MVC stands for model-view-controller. MVC is a pattern for developing applications that are well architected and easy to maintain. MVC-based applications contain: Controllers: Classes that […]
How to validate dropdown list using RequiredField validator
How to validate dropdown list using RequiredField validator Answer : Set initialvalue property of RequiredField validator to default value of dropdown list.
What does EnableViewState=true page property means ?
Question : What does EnableViewState=true page property means ? Answer : EnableViewState=true page property helps enables viewstate of page so all user inputs in controls […]
What are various event handlers listed in Global.asax file
Question : What are various event handlers listed in Global.asax file ? Answer : Various event handlers listed in Global.asax file : 1. Application_Error2. Application_Start3. […]
How can user locale information accessed in Asp.net application
Question : How can user locale information accessed in Asp.net application Answer : Using System.Web.UI.Page.Culture property
