If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I have to call an aspx page with two parameters, is there a way to call this page with these two parameters, but hiding the parameters in the address bar?
Not that I know of. Sorry. If you want to (ASP here, don't know much about ASPX though I understand they're similar) pass anything to the Request.QueryString object, that's how you do it.
Save the variables using Application or Session if you are passing from an ASP page.
Just before the Response.Redirect (if thats what your using) add:
Session("par1")=par1
Session("par2")=par2
Then load them on the new page:
par1=Session("par1")
And use them.
This sort of system will work fine if you are passing from an AspX page and the params are static.
Otherwise you can create a Session("params") variable with a list of all the params the destination page has to process. You can then split the params list using Split(), put them to an array and use a 'for each' to run through and load each parameter or load them as needed.
If you're posting from an HTML page or other non AspX source you will have to use forms. You can hide the form fields and use JavaScript to post the form for you.