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 are assemblies and namespaces and explain the difference between them ?
What is the advantage of using Windows authentication in a Web application?
What is the use of express session?
Which data type does the rangevalidator control support?
what is .net
What is server side routing?
Are cookies client side or server side?
Is there any limit for query string? Means what is the maximum size?
How can we call webservices in Banking Applications? and where we are using it?
can machine.config file orverrides web.config. For example: if u set session timeout as 30 mins in web.config file to a particular application and if u set session timeout as 10 mins in machin.config. what will happen and which session is set to the appliction?
How to disable validator control by client side JavaScript?
which one is more flexibility and reliability and durability asp.net (VS)php which one is best and which one we do nice to create dynamic websites