Last post Sep 18, 2020 07:43 PM by peterthegreat
Sep 16, 2020 01:39 PM|peterthegreat|LINK
Public Shared Function RetrieveSlides() As AjaxControlToolkit.Slide()
Dim dvProduct As DataView = CType(imagesSqlDataSource2.Select(DataSourceSelectArguments.Empty), DataView)
Dim imageid As String = HttpContext.Current.Request.QueryString("ID")
The Web Method does not accept server side code as normal.It first stated that it is not shared and when i instantiate as new class as mention it returned null values ?
Sep 16, 2020 03:55 PM|mgebhard|LINK
This is the expect VB.NET behavior. Shared methods cannot access instance class members. The data source is an instance member of the page class. Use standard ADO.NET to do the select.
Sep 18, 2020 07:43 PM|peterthegreat|LINK
Thanks, that answers my puzzle. The reason i wanted to pass a sqldatasource dataview object was because it filters the query on querystring parameter. i notice too that Ajax slides do not allow you to change the default shared property else it wont work.Although
many examples show different??