Click here to Skip to main content
15,890,399 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I insert some data into my database table. When I insert the data, the data is loaded into the DataRepeater control afterwards.

How do I load dataset data into the DataRepeater control? My doubt is how I can assign controls of the DataRepeater to database table columnID's?

Please give me a sample solution...

Thanks
Posted
Updated 15-Oct-10 1:18am
v3

1 solution

Try:
C#
SqldataAdapter adap=new SqldataAdapter("select * from tablename",con);
Dataset ds=new Dataset();
adap.Fill(ds);
dataRepeater.datasource=ds;
dataRepeater.databind();
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900