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

What is an il?

0 Answers  


What are three ways that you can use a compare validator?

1 Answers  


How can you handle errors in Web API?

0 Answers  


I am trying to redirect another site on button click.

8 Answers  


What parameters can you pass in the url of the api? Can get and post use the same url?

0 Answers  






how to include timer or counting time to display next page in asp.net

0 Answers  


a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?

0 Answers   CTS,


COM+ Used ________________ Isolation Level

0 Answers   CTS,


List the asp.net validation controls?

0 Answers  


Which is better asp.net or php?

0 Answers  


Could u send me the answer for this question as soon as possible. Im using 'System.net.mail.mailmessage' namespace for sending a mail from my application. What should I mention in 'system.net.mail.mailmessage.to' property and What should I mention in 'system.net.mail.mailmessage.from' property.

1 Answers  


Difference between connected architecture and Dissconnected architecture?

2 Answers  


Categories