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

How to rename a table using sql queries?

0 Answers  


What does clearing cache?

0 Answers  


What is the use of response redirect in asp.net?

0 Answers  


What methods are fired during the page load?

7 Answers   InSync Tech-Fin, Siebel Systems, Visual Soft,


How do you secure your configuration files to be accessed remotely by unauthorized users?

0 Answers  


Difference between abstract class and interface

2 Answers   Fidelity,


Where the viewstate is stored after the page postback?

0 Answers  


How do active server pages work?

0 Answers  


How does the XmlSerializer work? What ACL permissions does a process using it require?

2 Answers  


What is customer control and user control?

1 Answers   Perot Systems,


How many types of Cookies are available in ASP.NET?

0 Answers   MindCracker,


How would you get asp.net running in apache web servers? Explain it's limitations.

0 Answers  


Categories