views:

71

answers:

3

Hi,

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 page to change the ResponseType to be Excel data.

Any idea ?

Thanks

A: 

Would jQuery.post() work for you?

kervin
A: 

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

ydobonmai
+1  A: 

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

window.location = "myPage.asp?newParam=newValue";
bingle
Would that keep the previous params ?
Amadeus45
You need make sure you always append the previous params as well in the URL.
ydobonmai
bingle
Amadeus45