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

When response expires if there are multiple calls to Response.Expires on a single page?

NOTE: This is objective type question, Please click question title for correct answer.
HttpApplicationState class stores data in

NOTE: This is objective type question, Please click question title for correct answer.
How many ContentsPlaceHolder Controls contains to the MasterPage by default?

NOTE: This is objective type question, Please click question title for correct answer.
Is it possible to create cookies with keys? Explain using some example.

Yes , it is possible to create cookies with keys.
Cookies is a dictionary at the time of initialization, if key is specified with it. (You can determine whether cookie is dictionary or not using HasKeys property.)

For an example:
Response.Cookies("Testcookie")("key1") = "key1" 

Response.Cookies("Testcookie”)("key2") = "key2"


After this if you make assignment like,
Response.Cookies("Testcookie”) = “noKey”

Then,” key1” and “key2” of cookie("Testcookie”) will be deleted.
The URL for a Secure Connection starts with

NOTE: This is objective type question, Please click question title for correct answer.
which property is used to check the current connection is secure

NOTE: This is objective type question, Please click question title for correct answer.
The FormsAuthentication class is in the

NOTE: This is objective type question, Please click question title for correct answer.
To Create a Email Message in HTML format,set the IsBodyHtml Property to

NOTE: This is objective type question, Please click question title for correct answer.
To specify a comment with in a Skin File you must use the

NOTE: This is objective type question, Please click question title for correct answer.
Which attribute is used to apply the skin to a control of that type

NOTE: This is objective type question, Please click question title for correct answer.
What is the name of the base class, from which all the validators controls of ASP.NET is derived?

All the ASP.NET validation controls are derived from BaseValidator Class except Validation Summary Control.
Which method will you use to access second result table of stored procedure with datareader ?

NOTE: This is objective type question, Please click question title for correct answer.
Name the Protocols that are commonly used for sending and retrieving Email Message?

NOTE: This is objective type question, Please click question title for correct answer.
Which protocol for defining the format of an Email message

NOTE: This is objective type question, Please click question title for correct answer.
Name the constructor which creates a client that can send email to the specified SMTP server?

NOTE: This is objective type question, Please click question title for correct answer.
You can redirect (or) Transfer to a CustomError Page in which block?

NOTE: This is objective type question, Please click question title for correct answer.
DetailsView Control can be displayed in which Modes?

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