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.

Answers were Sorted based on User's Feedback



What is the purpose of the following segment? If ( !IsPostBack) { sqldataAdapter1.Fill (dsuser..

Answer / 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

What is the purpose of the following segment? If ( !IsPostBack) { sqldataAdapter1.Fill (dsuser..

Answer / vinita tanwar

To populate the DataAdapter the first time the web page
id displayed.

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More ASP.NET Interview Questions

Name the control which can be used to reserve the space on web page for storing localized data.

3 Answers   IBM,


what cut off mark for po's,what questions they asked for interview?

0 Answers  


How do you register JavaScript for webcontrols ?

1 Answers  


How to merge 2 tables fields in DataTable in asp.net

6 Answers   Wipro,


Which control would you use if you needed to make sure the values in two different controls matched?

4 Answers   Siebel Systems,


Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?

0 Answers  


Types of optimization and name a few ?

3 Answers   Accenture,


How does asp page work?

0 Answers  


What are different types of authentication techniques that are used in connection strings to connect .net applications with microsoft sql server?

0 Answers  


How can you provide an alternating color scheme in a Repeater control?

6 Answers   Siebel Systems,


SessionState - type of sessionstate and when and how to use it

1 Answers   Syntel,


What is a server cookie?

0 Answers  


Categories