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

Why is string called immutable data type?

812


Explain the server control events of asp.net ?

758


What are the types of session in asp.net?

717


When maintaining session through sql server, what is the impact of read and write operation on session objects?

782


How do you open a page in a new window?

766


How to improve performance of web application asp.net mvc? : Asp.Net MVC

745


What is the significance of ASP.NET routing?

848


What is state management in .net?

821


Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?

865


What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?

815


What are the Types of session management in ASP.NET

775


What does postback mean?

757


How to communicate via Remote proxy with Client? a)MarshalByRef b)Marshal by Value or Any thing else?

1795


What is the difference between ASP Session State and ASP.Net Session State?

806


What are html helpers in asp.net?

781