Hi!
On a button click I create a new DS and assign it to a DataList. The count of the asked rows are based on a textbox.
But DL don't refresh. Always shows the first asked data values and the number of displayed rows are the same (the initial) as well.
I've tried to clear the controls, set DataSourceID instead of DS, GridView, Listview, disable the ViewState, etc. But the problem is the same.
Any help is greatly appreciated.
On a button click I create a new DS and assign it to a DataList. The count of the asked rows are based on a textbox.
Code:
XmlDataSource xds=new XmlDataSource();
xds.Data=ws.QueryAsXML("select top "+TextBox1.Text+" ... ");
xds.DataBind();
DataList1.DataSource = xds;
DataList1.DataBind();
I've tried to clear the controls, set DataSourceID instead of DS, GridView, Listview, disable the ViewState, etc. But the problem is the same.
Any help is greatly appreciated.