Asp.Net Interview Question and Answers for Experienced

41. How can you add a Web control to an ASP.NET page?
  There are two ways.
  • First, you can drag and drop the appropriate Web control from the Toolbox onto the designer.
  • Second, you can enter the web control syntax manually in the Source view.
 
Your Name Your Email-ID
Your Answer
42. How does ASP.NET maintain the state of server controls?
  By placing hidden HTML tags in the ASP.NET page that remember the values entered.
 
Your Name Your Email-ID
Your Answer
43. What are the differences between postback forms and redirect forms?
 
  • Postback forms are forms whose method attributes is set to post and whose action attribute is set to the same URL that the form exists on. That is, if the web pages Page1.aspx has a postback form, its form's method attribute will be set to post and its action property to Page1.aspx.
  • Redirect forms are ones whose action attribute is set to a URL other than the URL the form exists on. That is, if the web page Page1.aspx has a redirect form, its form's action attribute is set to some other web page's URL such as Page2.aspx. Redirect forms can have a method attribute of either post or get.
 
Your Name Your Email-ID
Your Answer
44. Explain post back and non post back events?
 
  • Post back events are those that cause the Form to the posted back to the server immediately. These kinds include click type events, such as the button click event.
  • Non post back events are those that the form is not posted back to the server immediately. Instead the control caches these events until the next time a post back event occurs.
 
Your Name Your Email-ID
Your Answer
45. List any four Web Forms Life cycle Events?
 
  • Initialize, load View State, Process Post back Data, Load
  • Send post back Change Modifications, Handle Post back Events
 
Your Name Your Email-ID
Your Answer
12345678910 Page 9 of 10