jackdavis1857-gmail
-
6/3/2013 11:07:29 PM
Cookie Value on Anchor Links
Hi,
I have code written inside the master file, that captures a query string parameter value from URL and stores it inside a cookie.
I want this value of the cookie to be used on anchor links or other links on the site.
When i try to include code like this: <a href="/something/somethingelse/<%= Response.Cookies("cookie-name")%>"
inside a widget (Static HTML/Rich Text Widget), the <%=%> is rendering into html codes rather than code blocks.
(1) How can i use such custom code blocks through the widget to access the Cookie value??
(2) Or is there a way to store the cookie inside a Macro, and use the Macro on those anchor links??? if Yes, where do i set the value of the cookie from the URL parameter to the Custom Macro?? Can you give an example??
Thank you
|