Answer: To retreive the authentication mode, write this code snippet in Page_Load()
AuthenticationSection a=(AuthenticationSection) WebConfigurationManager.GetSection("system.web/authentication");
Response.Write(a.Mode.ToString());
Note:
You must include System.Web.Configuration namespace for this code to work,
Asked In: Many Interviews |
Alert Moderator