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?

4

1 回答 1

1

放一个“。” 在斜线前面或删除斜线

<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>

注意:这将引用/重定向当前页面。那是你要的吗?

于 2012-06-05T16:35:54.070 回答