Get data from a asp:repeater?

Hi,

How can I get all the rows from a repeater(i've already have a datatable if needed), and insert all registries in a SQL table

I know that I need to use a foreach....but any sample

thanks




Answer this question

Get data from a asp:repeater?

  • grossi

    Ok, but that's is not my point, what I need is....get all rows from a datatable or from the asp:repeater, convert each colunm in a string to I use my insert query....

    It's better now Thanks for helping



  • lock

    You should grab the data from the data source. The repeater doesn't really exist until the page is rendered, that is, the data exists as HTML, and it exists in the data source. If you're creating a repeater with text boxes, etc, then you'll have trouble, dynamically created controls need to exist prior to Page_Load in order to participate in viewstate, so you can get their values. I'm not sure this can be done with a repeater.



  • Get data from a asp:repeater?