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 are directives in asp.net? List down all the important directives.

0 Answers  


Breifly explain about stack and heap memory Managemet?

2 Answers  


What are different templates available in Repeater,DataList and Datagrid ?

1 Answers  


Explain page output caching?

0 Answers  


About Garbage Collector?

3 Answers   Microsoft,


What is the difference between table and query?

0 Answers  


How to execute a stored procedure.and how to call it form a asp page

2 Answers  


what is the assembly?

2 Answers  


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.

1 Answers  


What is the web.config file in asp?

0 Answers  


How do I use response redirect?

0 Answers  


Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?

0 Answers  


Categories