Z.ASP.Net FAQ
Releases History
What’s new in ASP.NET 2.0 in terms of authentication?
Architecture
State Management
Session Management
How to change session mode in ASP.Net?
Advance Question on Session Management ( For Answer read this MSDN Forum Link)
Session state works on some browsers, but not on others. Why?
In InProc mode, why do I lose all my session occasionally?
Session states works on some web servers but not on others.
Why isn't session state available?
Why isn't Session_End fired?
Why are my Session variables lost frequently when using InProc mode?
Why does the SessionID remain the same after the Session times out or abandoned?
Why does the SessionID changes in every request?
What is the difference between Session.Abandon() and Session.Clear()?
Is the session Timeout attribute a sliding timeout value?
Can I share session state between ASP.NET and ASP pages?
Can I share session state between web applications (i.e. "virtual directories" or "applications" in IIS)?
What kinds of object can I store in session state?
Why did my request hang after I switch to SQLServer mode?
How come Response.Redirect and Server.Transfer is not working in Session_End?
In Session_End, do I have a valid HttpSessionState object and HttpContext object?
How do I use session state with web services?
I am writing my own HttpHandler. Why is session state not working?
I am using a webfarm, and I lost session state when directed to some web servers.
If using "cookieless", how can I redirect from a HTTP page to an HTTPS page?
Does session state have a locking mechanism that serialize the access to state?
How do I detect a session has expired and redirect it to anther page?
In Session_End, I tried to do some cleanup job using SQL but it failed. Why?
I am using SQLServer mode. Why aren't my sessions expiring?
I have a frameset page which has an HTM extension, and I found out each frame it contains display a different session id on the first request. Why?
I set EnableSessionState to "ReadOnly", but in InProc mode I can still modify the session. Why is that?
I set "cookieless" to true, and now my session variables are lost after a Redirect. Why?
What are the disadvantages of setting cookieless to true?
In InProc mode, I change the timeout value of a session programmatically, and that causes my Session_End to be called. Why?
In SqlServer mode, can I store my session state in a database other than tempdb?
How can I avoid putting plain password for my sql connection?
What SQL permissions do I need when using SqlServer mode?
Can I write my own custom session state module?
How does (de)serialization work in SqlServer and State Server mode?
How can I secure my state server?
Can I subscribe to SessionStateModule.End event using a non-global.asax handler method?
Can different apps store their session state in different databases on the same SQL server?
Cookie Management
View State
UI and Controls
What are different type of controls available in ASP.Net
Client Side Controls (Pure HTML Controls)
Server Controls
HTML Server Controls (HTML Controls with RunAt="Server")
ASP.Net Web Controls
Validation Controls
User Controls
How does Validation controls works in ASP.Net
How themes can be changes programmatically
What is the purpose of Localize Controls
What is the purpose of View and MultiView Control
What is the purpose of Substitution controls
HTML 5 with ASP.Net
ASP.Net Ajax
How to check if a post back is regular post back or AsyncPostback
What is conditional Update and why it is needed
How and when external controls (out side update panel) can be used to trigger update panel
What are the core ASP.Net AJAX Client Files
microsoftajax.js, microsoftajaxTimer.js, microsoftajaxWebForms.js
It is a client side java script class that manages partial page updated
What is the use of PageRequestManager Class
Canceling request and showing update like progress bar
What is the purpose of SYS.Application class in AJAX
Can Update panel support multiple Async calls at a time?
Difference between WCF service and AJAX enabled web service
Mainly it adds support for client callbacks and JSON. Read More ...
It also provides Client side javascript proxy
How ASP.Net AJAX uses the WCF web services
WCF Web Services provides client side proxies that can be used to access web services
How to make cross domain calls in ASP.Net AJAX/JQuery
Make Web Service XDR Compatible if you own it
Server Side Proxy (Cross Domain Proxy)
Where we should load scripts in case of ASP.Net AJAX
Script manager should be used
How to optimize (reduce) number of script download
Use CompositeScript Tag of Script Manager control
What is Extender controls
Authentication
How do I enable Forms Authentication to work with multiple Active Directory domains?
How do I enforce strong passwords using membership feature in ASP.NET 2.0?
What are the issues with Forms Authentication in Web Farm Scenario?
How do I implement single sign on using forms authentication?
How do I use my custom user / identity store with forms authentication?
How do I configure account lockout using membership feature in ASP.NET 2.0?
When and how do I use windows authentication in ASP.NET 2.0?
When and how do I use Kerberos authentication in ASP.NET 2.0?
Authorization
What's the difference between URL Authorization, File Authorization and Role Authorization?
How is the AuthorizationStoreRoleProvider different from Authorization Manager APIs?
How do I use Windows Groups for role authorization in ASP.NET 2.0?
How do I protect authorization cookie when using role caching in ASP.NET 2.0?
Auditing and Logging
Code Access Security
When should I put assemblies in GAC, what are security implications?
What is permission calculator tool
Impersonation/Delegation
Configuration
How do I encrypt sensitive data in machine.config or web.config file?
How do I run an ASP.NET application with a particular identity?
How do I create a service account for running my ASP.NET applications?
Do I need to create a unique user account for each application pool?
How do I lock configuration settings?
How may ways we can alter configuration of an ASP.Net application
At Machine.Config, Site Root (Web.config), Virtual Dir (Web.config), Sub Dir (Web.config)
Most preferred model is Virtual Dir (Web.config)
What are the configuration elements that can not be applied at sub directory level
What happens when a configuration file is edited on a live web server ?
It causes app domain to recycle and and all state information is lost.
What are the way to create custom configuration section in a configuration file.
Exception Handling
Data Access
How do I protect the database connection strings in web.config file?
How do I use windows authentication for connecting to SQL server?
How do I use SQL authentication for connecting to SQL server?
Can my ASP.NET web application use a Microsoft Access database?
Can my ASP.NET web application use a SQL Server Express database in production?
How can Visual Studio 2010 and Visual Studio 2012 share a project that uses a database?
Input / Data Validation
Sensitive Data
Strong Naming and Signing
Diagnostics
How to redirect custom trace to ASP.Net trace and visa versa
How to log ASP.Net events to SQL Server
How to enable heart beat monitoring in ASP.Net
How to configure ASP.Net events to be delivered by email
How to create custom asp.net webevents
Deployment
Why don't all of the files in my project folder get deployed?
Can I include specific files or folders from outside of my project folder?
When should I use Web Deploy parameters instead of Web.config transformations?
How do I deploy an Entity Framework database that uses DbContext without using Migrations?
How can I debug the deployment packaging or publishing process?
Can I use Remote Agent service over HTTPS with one-click publish?
Can I use the Web Deploy tempAgent provider setting with one-click publish?
Can one-click publish create a package for archival purposes?
Can I specify that a package should be created every time I build a solution?
How do I keep my application domain from restarting multiple times during a long deployment process?
Why do I get an error that says ASP.NET 4 is required when ASP.NET 4 is already installed?
Why does deployment fail when it attempts to execute CREATE USER or CREATE ROLE database commands?
Can I create a single package and use it to deploy to both IIS 6 and IIS 7?
Why does remote deployment fail for large files, although local deployment succeeds?
How to refer a GAC assembly in ASP.Net Web Site Project
How to refer a GAC Assembly in ASP.Net Application Project.
Need to add DLL reference from GAC like any other DOT.Net Application or library
GAC Vs Private deployment of ASP.Net application
GAC support Side by side multi version deployment and allow other application to share same dll.
GAC deployment should not be promoted due to maintenance overhead.
There is now way of side by side deployment of private assembly.
What are the deployment Types in ASP.Net
XCopy (Whole websites is copied)
Compiled
Whole Binary (No source Aspx file will be generated)
Update-able source ( Aspx markup file will be copied)
What are different deployment approaches available in Asp.Net.
Obfuscation
How should I prevent someone from disassembling code?
http://www.gointerviews.com/top-50-asp-net-interview-questions-answers/