Hi there,
In the code behind I have declared a datatable, directly under the public partial class that inherits from my basePage that in its turn inherits from the page class.
Code:
private static DataTable photoSlides = new DataTable();
in the page load this datatable is loaded from a datareader, and that works fine.
However at the bottom of the cs page (after the page load) I have declared a pageMethod that is called by the slideShowextender from the ajax toolkit, that should give it its slides from the dataTable. However by the time the PageMethod needs to consume the dataTable object it has lost its value.
I have tried to run this page without its masterpage with its own scriptmanager, but without result.
A gridview in the pageload, that uses the datatable as its datasource perfectly displays the right data, but as soon as the page load event is over it seems that the datatable looses its data.
Can anybody help me with this issue?
best regards, Robin
nevermind! in the end it was not an issue of the variable being visible. I found out that the SlideSHowExtender does not accept a picture url in the format "~/pictures/etcetc.jpg" it then starts looking for picture files in the location "currentFolder/~/pictures/etcetc.jpg".
Strangely enough the tilde sign is not interpreted the way it should be and so no pictures appear in the slideshow.
thanks, Robin