ASP.NET Interview Questions and Answers (1544) - Page 6

Which of the follwoing property has the default property for gridview paging by setting the 'PageSetting' Property?

NOTE: This is objective type question, Please click question title for correct answer.
Which of the follwoing code have to write for cancel Link in gridview?

NOTE: This is objective type question, Please click question title for correct answer.
How To Get the Referral page's URL?

we can get the Referral page's URL using: Request.UrlReferrer.ToString();
To send Emails,you need the following classes from the System.Web.Mail namespace?

NOTE: This is objective type question, Please click question title for correct answer.
What is code-based security?

Code security is the approach of using permissions and permission sets for a given code to run. The admin for example can disable running executables off the Internet or restrict access to corporate database to only few applications.
What is the Better approach to redirect on other page within the same server? Response.Redirect or Server.Transfer

NOTE: This is objective type question, Please click question title for correct answer.
Default Mode for Session State?

NOTE: This is objective type question, Please click question title for correct answer.
Which is the first event in page life-cycle Event?

NOTE: This is objective type question, Please click question title for correct answer.
Name two properties common in every validation control?

ControlToValidate property and Text property
What is the maximum number of cookies that can be allowed to a web site?

NOTE: This is objective type question, Please click question title for correct answer.
How do you explicitly kill a user session?

NOTE: This is objective type question, Please click question title for correct answer.
How turn off cookies for one page in your site?

--> cookie state= false in web.config file
-->Cookie.Discard Property which Gets or sets the discard flag set by the server. When true, then client application not to save the Cookie on the user hard disk when a session ends.
Name Authenication Modes available in web Application?

(1) Window authentication.
(2) Form Authentication
(3) Passport Authentication
What is cross page posting in ASP.NET2.0 ?

When we have to post data from one page to another in application we used server.transfer method but in this the URL remains the same but in cross page posting there is little different there is normal post back is done but in target page we can access values of server control in the source page.This is quite simple we have to only set the PostBackUrl property of Button,LinkButton or imagebutton which specifies the target page.In target page we can access the PreviousPage property.And we have to use the @PreviousPageType directive.We can access control of PreviousPage by using the findcontrol method.When we set the PostBackURL property ASP.NET framework bind the HTML and Javascript function automatically.
Suppose Page_load event is defined in aspx page and same page_load event in code behind. What will happen now? How program will run?

Answer to this is :

The Page_load method in the aspx page will only run.It takes precedence over the one in the code behind.
Which of the following property is used to set a crosspage posting?

NOTE: This is objective type question, Please click question title for correct answer.
Which of the following is Default ErrorMode in CustomError tag?

NOTE: This is objective type question, Please click question title for correct answer.
Which control is used to display the list of Error Messages in asp.net page

NOTE: This is objective type question, Please click question title for correct answer.
Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories