1. How do you retrieve username in case of Windows Authentication?
System.Environment.UserName
2. What is the control for which by default post back is true?
Button
3. Where the private assembly is stored in asp.net?. application / bin directory
4. Where the public assembly is stored in asp.net?.
Global Assembly Cache (GAC)
5. What events will occur when a page is loaded?
1) Page_PreInit
2) Page_Init
3) Page_InitComplete
4) Page_PreLoad
6. Where is the View state data stored?
Hidden Fields
7. What are the different types of sessions in ASP.NET?
InProc, StateServer, SQL Server
8. How do you design a website with multilingual support in ASP.NET?
By using Globalization and Localization
9. What are the different ways of caching in ASP.NET?
There are three ways of caching in ASP.NET:
1) Output Caching - Caches the whole page.
2) Fragment Caching - Caches a part of the page
3) Data Caching - Caches the data
10. How Automatic Memory Management is done is ASP.NET?
By using Garbage Collector
11. How many web.config files can be there in an ASP.NET application?
Atleast one
12. How many navigation controls are there in ASP.NET 4.0?
There are three navigation controls in ASP.NET 4.0:
1) SiteMapPath 2) Menu 3) TreeView
13. List various event which occur throughout the life cycle of a page.
1)Page_PreInit
2)Page_Init
3)Page_InitComplete
4)Page_PreLoad
5)Page_Load
6)Control Events
7)Page_LoadComplete
8)Page_PreRender
9)SaveViewState
10)Page_Render
11)Page_Unload
14. What is boxing and unboxing?
Boxing is what happens when a value-type variable is assigned to a reference-type variable.
Unboxing is what happens when a reference-type variable is assigned to a value-type variable.
15. What are the uses of Reflection?
Reflection is a concept using which we can
1) Load assemblies dynamically
2) Invoke methods at runtime
3) Retriving