0

I have this link here...

<li><a href="/?fileDownloadable=downloadableProducts/MyPDF.pdf" target="_blank" runat="server">MyPDF</a></li>

and in my code behind I try to a Request.QueryString["fileDownloadable"] and it says it returning null...which in the link its not..

Any Ideas?

1
  • 2
    please check if have escaped the "/" in your link, it is a reserved character. The escape sequence is %2F. Commented Jun 5, 2012 at 16:14

1 Answer 1

1

Put a "." in front of the slash or remove the slash

<a href="./?fileDownloadable=downloadableProducts/MyPDF.pdf" target="_blank" runat="server">MyPDF</a>

OR

<a href="?fileDownloadable=downloadableProducts/MyPDF.pdf" target="_blank" runat="server">MyPDF</a>

Note: this would reference/redirect the current page. Is that what you want?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.