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

main difference between asp.net2.0,asp.net1.1,asp.net1.0

15 Answers   Inflexion, Infosys, iSoft, Microsoft, Prakruthi,


How do you sign out from forms authentication?

0 Answers   MCN Solutions,


Can we have 2 web config files?

0 Answers  


Is it possible to develop a single web application using ASP.NET webforms and ASP.MVC?

0 Answers  


Explain the difference between overriding and overloading?

0 Answers  






How do u deploy ur project?

0 Answers   HCL, Microsoft,


Is asp.net still used?

0 Answers  


What is the server of asp.net?

0 Answers  


What is the use of the tag in the web.config file?

0 Answers   MindCracker,


How can you handle errors in Web API?

0 Answers  


What does asp stand for in asp.net?

0 Answers  


Differentiate globalization and localization.

0 Answers  


Categories