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
How to access Request variables from CustomAction event
Re: How to access Request variables from CustomAction event
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.
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.
Who is online
Users browsing this forum: No registered users and 1 guest