c# - ASP.NET Request QueryString says value is null -


i have link here...

<li><a href="/?filedownloadable=downloadableproducts/mypdf.pdf" target="_blank" runat="server">mypdf</a></li>

and in code behind try request.querystring["filedownloadable"] , says returning null...which in link not..

any ideas?

put "." in front of slash or remove 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: reference/redirect current page. want?


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -