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 does Garbage collector(GC) works in .net

14 Answers   Accenture, HCL, Kekran Mekran, People Tech, Wipro,


What are the 3 types of web?

0 Answers  


Code for updating the database by entering the data into textboxes in aspx form?

2 Answers   TCS, Wipro,


Who creates jsessionid?

0 Answers  


What is a postback in asp net?

0 Answers  






Do ASP.NET forms authentication cookies provide any protection against replay attacks? Do they, for example, include the client's IP address or anything else that would distinguish the real client from an attacker?

1 Answers  


What are the layouts of ASP.NET Pages?

0 Answers  


What data types do the RangeValidator control support?

2 Answers   Siebel Systems,


I have a textbox , assign required field validator and i have two buttons 1) save 2) cancel , i want the validator run only when i click save button, don't validate cancel button , what to do?

7 Answers   eMids, Infotech, Integra, TCS, Wipro,


What's the use of response.output.write()?

0 Answers  


If(dropdownlist1.selectedIndexChanged==true) { //code } else { //code } I am getting error in If condition, so can u pls give me a solution.

4 Answers  


What do you understand by aggregate dependency?

0 Answers   MindCracker,


Categories