What is the page life cycle of an asp.net page?

The ASP.NET Page Life Cycle: PreInit : Create or re-create dynamic controls. Set a master page dynamically. Set the Theme property dynamically. Init : Raised after all controls have been initialized and any skin settings have been applied. Use this event to read or initialize control properties. InitComplete : Raised… Continue reading

Which accounts are used by ASP.NET for impersonation?

By default, ASP.NET uses two accounts to provide impersonation capabilities: the local system process account and the IUSR_COMPUTERNAME account. When impersonation is turned off, all the resources are accessed using the local system process account. When impersonation is turned on, the IUSR_COMPUTERNAME account is used to provide access to resources.

How do u configure session mode in web.config file?

Using <sessionState> tag This tag can be used to specify, were we are storing the session. This can be specified in the mode attribute. Supported values mode are Off, InProc, StateServer and SqlServer. InProc indicates that, session states is stored locally. StateServer indicates that session state is stored on a… Continue reading

What is authentication? Explain different types of authentication techniques used in ASP.NET

Authentication is the process of identifying valid users by requiring them to prove themselves. The three types of authentication provided by ASP.NET are as follows: Windows built-in authentication. IIS uses basic, digest, or integrated Windows authentication to perform the initial authentication. The user gains access to the requested resources under… Continue reading

What is serialization in .NET? What are the ways to control serialization?

Serialization is the process of converting an object into a stream of bytes. Deserialization is the opposite process of creating an object from a stream of bytes. Serialization/Deserialization is mostly used to transport objects (e.g. during remoting), or to persist objects (e.g. to a file or database). Serialization can be… Continue reading