gonzalogn
asked on
Using the operator ~ asp.net in Client Elements.
How can I use the operator ~ in Client Elements.
I need to use the operator ~ in client elements like is used in asp.net server controls.
By example :
1) Writing javascript code: parent.location.href('~/Pa ges/Test.a spx');
2) body1.Style.Add("backgroun d-image", "url(~/imagens/back_logo_c o.jpg)");
I was using Request.ApplicationPath but not worked.
Thanks for your help.
I need to use the operator ~ in client elements like is used in asp.net server controls.
By example :
1) Writing javascript code: parent.location.href('~/Pa
2) body1.Style.Add("backgroun
I was using Request.ApplicationPath but not worked.
Thanks for your help.
ASKER
Dear mrwad99,
The link is the same of Microsoft documentation help but not resolving my problem.
I found the solution myself, the method ResolveClientUrl(“~”), but only works in .NET Framework version 2.0
The Microsoft documentation sometimes is difficult to find alternatives options.
By example: I was seeking the ~ asp.net operator and doesn’t have any link alternative documentation to find ResolveClientUrl or ResolveUrl.
Thanks anyway!
The link is the same of Microsoft documentation help but not resolving my problem.
I found the solution myself, the method ResolveClientUrl(“~”), but only works in .NET Framework version 2.0
The Microsoft documentation sometimes is difficult to find alternatives options.
By example: I was seeking the ~ asp.net operator and doesn’t have any link alternative documentation to find ResolveClientUrl or ResolveUrl.
Thanks anyway!
OK, if you have found the solution, request refund of your points in community support :)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
HTH