How will you redirect to the home page after the user has been authentication in Forms Authentication ?

Thursday, July 30, 2009


You can redirect to the home page after the user has been authentication in Forms Authentication using the method,

FormsAuthentication.RedirectFromLoginPage(strUserName,false);


www.codecollege.NET

What is the name of the Authentication method used in Forms Authentication ?


FormsAuthentication.Authenticate(strUserName,strPassword);


www.codecollege.NET

What is the name of the default cookie used for Forms Authentication ?


.ASPXAUTH


www.codecollege.NET

What is the name of the method that is used to validate a user in ASP.NET Membership provider ?


The name of the method that is used to validate a user in ASP.NET Membership provider is,
Membership.ValidateUser(strUserName,strPassword);


www.codecollege.NET

What is the use of ASP.NET Membership provider?


Using ASP.NET Membership provider you can do the following operations,
1. Create New users
2. Delete users
3. Update users
4. Retrieve user list and details
5. Validate user credentials



www.codecollege.NET

What are the types of customErrors Mode in ASP.NET?

Wednesday, July 29, 2009


There are 3 types of mode, they are:
1. On
This setting applies when you want to enable custom errors.
2. Off
This setting applies when you want to disable custom errors.
3. RemoteOnly
This is when you want to display custom errors only to the Remote clients and generic full errors to local client.



www.codecollege.NET

How will you Check whether a browser supports AJAX callback or not?


You can check whether a browser supports AJAX callback or not by using the following property,
Request.Browser.SupportsCallback property.
.


www.codecollege.NET
Blog Widget by LinkWithin