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 |
Explain what the contents of cookie?
What is difference between web api and web services?
How to write test case (Unit test plan)
what is diffgram ?
Can you explain how ASP.NET application life cycle and page life cycle events fire?
What is a SESSION and APPLICATION object?
What is http session state?
What are Caching techniques in .NET
What is role manager work in web.config? how to restrict perticular pages from the users using the role manager?
i want to develope a page for online test using asp.net with c#.net. so, how to insert the questions in the database sqlserver2000 and how to pick the questions randomly when user login for test. plz send the code for this....
3 Answers Chaitanya, Crysalis, CTS, HCL, Sein Infotech, TCS,
What is the basic difference between asp and asp.net?
How many types of validators are there in asp net?