Meps
asked on
How do I add a value to URL?
This has to be simple, but I can't get it to work.
I have a page that I need to add the startDate and endDate text fields to the URL when the submit button is pressed.
Basicly:
...\mypage.aspx
After:
...\mypage.aspx?startDate= 3/1/2009&e ndDate=3/3 1/2009
Without a redirect, I need it done via postback.
I want the submit button to postback to the page, and put the values in the URL.
Any ideas?
I have a page that I need to add the startDate and endDate text fields to the URL when the submit button is pressed.
Basicly:
...\mypage.aspx
After:
...\mypage.aspx?startDate=
Without a redirect, I need it done via postback.
I want the submit button to postback to the page, and put the values in the URL.
Any ideas?
ASKER
That's the problem, this is part of a big form.
If I do any sort of transfer or redirect, it will erase all the values in the form.
Which is why I just wanted it to postback.
If I do any sort of transfer or redirect, it will erase all the values in the form.
Which is why I just wanted it to postback.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Server.Transfer("mypage.as
in your code to have the form value persistent along with the query string during button click.