Can we write C# inline with web part container layout like web part, transformation? I tried this but got error for MacroResolver {%# System.Web.HttpUtility.ParseQueryString(new System.Uri("ex.com?v=1").Query).Get("v") %}
{%# System.Web.HttpUtility.ParseQueryString(new System.Uri("ex.com?v=1").Query).Get("v") %}
Hi Chu,
It looks like you are trying to use ASCX code in Text/XML transformation. You should try something like this to get query string in container: {% v %} or {% QueryString.v |(identity)GlobalAdministrator%}
{% QueryString.v |(identity)GlobalAdministrator%}
Best regards, Dragoljub
Yes. Thanks for your answer @Dragoljub Ilic. I resolved this by make a custom macro method.
Please, sign in to be able to submit a new answer.