Pass a sqldatasource dataview and querystring parameter to the Ajax Slideshow web function ?

alex sunny 1 Reputation point
2021-06-30T13:06:29.753+00:00

Hello,

<System.Web.Services.WebMethod()>
<System.Web.Script.Services.ScriptMethod()>
Public Shared Function RetrieveSlides() As AjaxControlToolkit.Slide()
https://krogerfeedback.nl https://talktosonic.onl https://talktowendys.vip https://whataburgersurvey.onl
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 ?

thanks
alexsunny

Developer technologies ASP.NET Other
SQL Server Other
{count} votes

1 answer

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,096 Reputation points
    2021-07-01T07:27:33.39+00:00

    Hi @alex sunny ,

    It first stated that it is not shared and when i instantiate as new class as mention it returned null values

    You could put a break point (or use Watch) and check what is the count of Request.QueryString.
    As far as I think,if you want to pass values in the querystring,you could use session which is far more secure than querystring.
    About your problems,we need more details of your codes.
    Best regards,
    Yijing Sun


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.