Hi,
I'm trying to get some parameters from the QueryString in a transformation method using ASCX. With Text/XML, I know you can do {? parameter ?} or {% QueryString.parameter %} but in ASCX, I am not able to do so. What would be the proper way to fetch a parameter from the QueryString?
In an ascx file you can use standard c# code:
<%# Request.QueryString["parameter"] %>
@Brenden, thank you, I did not know about that. It works perfectly now. Thank you very much!
Hi Carson,
Brenden is right. That's the way how to get some parameters from query string. Just be careful and do not forget to sanitize the query string parameter value otherwise you will face the Cross-site scripting vulnerability. You can find more details in article about XSS protection.
Best regards.
Please, sign in to be able to submit a new answer.