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 difference between web config and machine config files?

799


What is application and session in asp.net?

733


How do you implement postback with a text box?

779


I have an excel file with data, i am importing this excel file data into Sqlserver 2005 database. while importing i am getting wrong data(ie, special characters) in one column(description column), upto some limit the data in that column is coming fine,after that data is coming like below. The "Walter" leather storage bench is one of our most popular styles. The top with the tufting and double stitching finish a very impressive piece. The size is perfect in front of beds and the storage adds another functional bonus. Open it up and sneak al���Ƴ�Â��ƴ�Ã��ƶ�Å�� al���Ƴ�Â��ƴ�Ã��ƶ�Å�� Is there anywhy to resolve this? (I am using recordset in coding for developing import process.) please help me soon.

1699


What is difference between mvc and asp.net? : Asp.Net MVC

847


List down the sequence of methods called during the page load.

740


Explain exception handling in .net.

863


can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?

1969


Can you explain composite pattern?

804


What is loop in asp.net?

840


Why would anyone need to implement their own hashtable or linked list?

2709


Explain the asp.net mvc folder conventions? : asp.net mvc

761


Is there any alternative to avoid name collisions other then Namespaces?

865


How does the iis work?

818


How do you remove duplicates without using remove duplicate stage?

829