How to access Request variables from CustomAction event

Discussions about DocuVieware integration in GdPicture.NET.
Post Reply
ErikD
Posts: 8
Joined: Wed Jun 10, 2015 7:34 pm

How to access Request variables from CustomAction event

Post by ErikD » Sun Jul 12, 2015 7:06 am

Hi,

How can I access Request.QueryString variables from within the CustomAction event?

My first thought was that you guys were using <System.Web.Services.WebMethod()> and that I could use HttpContext.Current.Request.QueryString but that came back with no values.

I did a bit of digging and found sender.Page.ClientQueryString, but that value seems to be cached from the first page visit. If I visit the page again with different values in the URL, that property still shows the original values.

Thanks,
ErikD

Cedric
Posts: 269
Joined: Sun Sep 02, 2012 7:30 pm

Re: How to access Request variables from CustomAction event

Post by Cedric » Thu Mar 24, 2016 5:20 pm

Hi Erik,

I don't think you can do that this way (at least not that I know of).
Your best option is probably to gather the query string in the JavaScript that triggers the Custom Action and send it in a parameter objet.
This way you will be to access it sever side, a bit like we do in the custom action that is in our Barcode Recognition demo.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest