Jose

Jose

  • NA
  • 5
  • 0

Problems with asp:DataRepeater

Apr 19 2007 4:26 AM

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...

 

<asp:Repeater ID="Repeater1" runat="server" DataSourceID="XmlDataSource1" >

 

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


Answers (1)