Hi all,
I´m having a problem with a asp:DataRepeater. In code I asign the DataSourceId.Data each time I load the page that contains the DataRepeater. This page is only for information pourpuses, so, the page is loaded and them is closed. No action is avaible in it.
The DataRepeater in declared like...
and each time I load the page I use this code...
XmlDataSource1.Data = strXML;
Repeater1.DataBind();
Data are loaded using XPath (because strXML is an xml string variable).
The problem is that each time I load the page, the repeater loads the data loaded the first time the page was opeded (debugging I´ve seen strXML changes and contains the requested data).
Any idea???
Thnx
Jason ShortPosted Apr 24, 2007, 5:28 AM
Only if (!PostPost) in your main loop. That is the only time you should rebind. If you rebind each time the page loads, it goes back to the start!