开发者

How to reload ASP 1.0 page with additional parameter

I'm a beginner of ASP. I'm maintaining at ASP 1.0 page and I want to reload the page with an additional parameter when user click client-side URL. Its important that it also keeps the current parameters.

The objective is to export the table currently display in Excel. So I want to reload the page with a special parameter that would tell the p开发者_StackOverflowage to change the ResponseType to be Excel data.

Any idea ?

Thanks


In javascript simply reference the page, but with query string param.

window.location = "myPage.asp?newParam=newValue";


Would jQuery.post() work for you?


Have you already tried using querystring? you can reload the same page with something like SomePage.asp?param=value. And check in the code something like test = Request["param"] and then use the "test" variable. You can load the page using window.location = 'SomePage.asp?param=value'.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜