What property must you set, and what method must you call in
your code, in order to bind the data from some data source
to the Repeater control?

Answers were Sorted based on User's Feedback



What property must you set, and what method must you call in your code, in order to bind the data f..

Answer / ish

SqlConnection cn=new SqlConnection(ConnectionString);
SqlCommand cmd=new SqlCommand(cn,Query);

cn.Open();
SqlDataReader Reader=cmd.ExecuteReader();

Is This Answer Correct ?    2 Yes 1 No

What property must you set, and what method must you call in your code, in order to bind the data f..

Answer / ish

That is for reader not repeater

Is This Answer Correct ?    1 Yes 0 No

What property must you set, and what method must you call in your code, in order to bind the data f..

Answer / sunayana

You must set the DataSource property and call the DataBind
method.

Is This Answer Correct ?    1 Yes 1 No

What property must you set, and what method must you call in your code, in order to bind the data f..

Answer / sulochana singh

Set the DataMember property to the name of the table to bind to. (If this property is not set, by default the first table in the dataset is used.)
DataBind method, use this method to bind data from a source to a server control. This method is commonly used after retrieving a data set through a database query.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Explain what the contents of cookie?

0 Answers  


What is difference between web api and web services?

0 Answers  


How to write test case (Unit test plan)

1 Answers   Syntel,


what is diffgram ?

3 Answers  


Can you explain how ASP.NET application life cycle and page life cycle events fire?

0 Answers   MindCracker,


What is a SESSION and APPLICATION object?

0 Answers  


What is http session state?

0 Answers  


What are Caching techniques in .NET

0 Answers   Microsoft,


What is role manager work in web.config? how to restrict perticular pages from the users using the role manager?

1 Answers   Infosys,


i want to develope a page for online test using asp.net with c#.net. so, how to insert the questions in the database sqlserver2000 and how to pick the questions randomly when user login for test. plz send the code for this....

3 Answers   Chaitanya, Crysalis, CTS, HCL, Sein Infotech, TCS,


What is the basic difference between asp and asp.net?

0 Answers  


How many types of validators are there in asp net?

0 Answers  


Categories