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
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 |
Answer / sunayana
You must set the DataSource property and call the DataBind
method.
Is This Answer Correct ? | 1 Yes | 1 No |
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 |
What is an il?
What are three ways that you can use a compare validator?
How can you handle errors in Web API?
I am trying to redirect another site on button click.
What parameters can you pass in the url of the api? Can get and post use the same url?
how to include timer or counting time to display next page in asp.net
a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?
COM+ Used ________________ Isolation Level
List the asp.net validation controls?
Which is better asp.net or php?
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.
Difference between connected architecture and Dissconnected architecture?