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 assemblies and namespaces and explain the difference between them ?

0 Answers  


What is the advantage of using Windows authentication in a Web application?

0 Answers   MCN Solutions,


What is the use of express session?

0 Answers  


Which data type does the rangevalidator control support?

0 Answers  


what is .net

15 Answers   Net Solution,






What is server side routing?

0 Answers  


Are cookies client side or server side?

0 Answers  


Is there any limit for query string? Means what is the maximum size?

0 Answers  


How can we call webservices in Banking Applications? and where we are using it?

0 Answers   FCG,


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?

2 Answers   SunGard,


How to disable validator control by client side JavaScript?

0 Answers  


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

0 Answers   TCS,


Categories