Interview Questions  

Go Back   Interview Questions > Interview Questions & Answers > Information Technology > Microsoft Technologies > Dot Net > ASP.NET

ASP.NET ASP.NET Interview Questions, Learn by sharing ASP.NET Interview Questions asked in various companies, Get Career advices, Interview Procedures from ASP.NET experts, Post asked ASP.NET Interview Questions and Answers.

   

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-12-2008, 04:13 PM
Senior Member
 
Join Date: Feb 2008
Posts: 9,095
Default What is the purpose of the following segment? If ( !IsPostBack)

What is the purpose of the following segment? If ( !IsPostBack) { sqldataAdapter1.Fill (dsusers1); DataGrid1.DataBind (); } a) To populate the DataAdapter the first time the web page id displayed. b) To populate the DataSet every time the web page is displayed. c) To populate the DataAdapter every time the web page is displayed. d)To populate the DataSet the first time the web page is displayed.
Reply With Quote
  #2 (permalink)  
Old 05-07-2008, 06:44 PM
Junior Member
 
Join Date: May 2008
Posts: 20
Default

Page.!IspostBack check tht every time page goes to server.
Reply With Quote
  #3 (permalink)  
Old 05-16-2008, 05:44 AM
Junior Member
 
Join Date: May 2008
Posts: 10
Default

IsPostBack property checks whether the page is posted back to the server from the client or not. So this is very useful when you want to execute some code only for the first time when request is made for the page.
Reply With Quote
Reply

Tags
asp.net, interview questions

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On