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

What are the benefits of Razor View?

0 Answers   NA,


What is difference between user control and custom control?

1 Answers   TVS,


What are the built-in objects in asp.net?

0 Answers  


How can we Validate a Controls in ASP.NET page using JavaScript?

0 Answers   QuestPond,


What is AutoEventWireup attribute for ?

0 Answers  


If I update session state, should I lock it, too? Are concurrent accesses by multiple requests executing on multiple threads a concern with session state?

1 Answers  


Types of values mode can hold session state in web.config ?

1 Answers   Accenture, Parrot Systems,


Will session work if cookies is disabled?

0 Answers  


What is the difference between ASP and ASP.NET?

4 Answers   Sans Pareil IT Services, TCS,


Write a code for passing ArrayList in Web API?

0 Answers  


what is NET Framework ?

4 Answers   TCS,


How do you handle server controls?

0 Answers   Cap Gemini,


Categories