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 directives in asp.net? List down all the important directives.
Breifly explain about stack and heap memory Managemet?
What are different templates available in Repeater,DataList and Datagrid ?
Explain page output caching?
About Garbage Collector?
What is the difference between table and query?
How to execute a stored procedure.and how to call it form a asp page
what is the assembly?
Hi, I am working in a small software company in asp.net platform. I need to know how and what are all the task in asp.net will be assigned for the developers in mnc companies. Thanks in advance.
What is the web.config file in asp?
How do I use response redirect?
Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?