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.
Answer Posted / swapna
To populate the DataSet the first time the web page is
displayed. i.e Instance is created first time with this.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
Explain the code Access Security (CAS) in .net Framework?
Why do we need Sessions?
Which method is used to perform all validation at the page level?
What is simple data binding?
How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?
How to implement globalization and localization in the use interface in .net.
Error : The operation couldn’t be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction.00000110 oledb provider for linked server returned message the partner transaction manager has disabled its support for remote/network transactions. I can able to execute the stored procedure in sql server but when i run the web page getting error like above. I did all the configuration. what is the solution?
How do I publish my asp.net application to my isp's web server?
What is a postback in asp net?
Define web.config in .net?
Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
What is Model-View-View Model?
How can you handle exceptions in asp.net?
What is the use of service provider?
What is Web API?