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


Please Help Members By Posting Answers For Below Questions

What is the use of asp.net web api?

585


What are cao and sao.

548


What are Caching techniques in .NET

600


Explain the advantages of asp.net.

545


Define view state.

552






Explain what is postback in asp. Net?

554


What is the recommended approach for asp.net mvc to globally intercept exceptions? What other functionality can be implemented with the approach? : Asp.Net MVC

504


What are the contents of cookie?

575


Define viewstate in .net?

546


What is the concepts of globalization and localization in .net?

530


Demonstrate Render and PreRender?

604


What is the maximum amount of memory any single process on windows can address?

536


Difference between using directive vs using statement?

510


List of words of preprocessor in .net?

520


Explain the purpose of storyboard.targetproperty.

524