ASP.Net Interview Question and Answers

96. What base class do all Web Forms inherit from?
  System.web.UI.Page class
 
Your Name Your Email-ID
Your Answer
97. How can you identify that the page is Postback?
  The page object uses the IsPostBack property to check whether the page is posted back or not. If the page is postback, this property is set to true.
 
Your Name Your Email-ID
Your Answer
98. How to Create a Cookie?
  Cookie are one of several ways to store data about web site visitors during the time when web server and browser are not connected. Common use of cookies is to remember users between visits. Practically, cookie is a small text file sent by web server and saved by web browser on client machine.
The“Response.Cookies” command is used to create cookies.
 
Your Name Your Email-ID
Your Answer
99. How do you identify a Master Page?
  The master page is identified by a special @ Master directive that replaces the @ Page directive that is used for ordinary .aspx pages.
 
Your Name Your Email-ID
Your Answer
100. Explain what a diffgram is and a good use for one?
  The DiffGram is one of the two XML formats that you can use to render DataSet object contents to XML. For reading database data to an XML file to be sent to a Web Service.
 
Your Name Your Email-ID
Your Answer