J
Jon
Hi,
I have hyperlink objects in a datagrid that redirect the user back to
the current page with this syntax:
<a href="mypage.aspx?id=foo">
When the page reloads, code in Page_Load then takes the appropriate
action based on finding the 'id' name/value pair in the URL
querystring. This works well.
However, I've noticed that all subsequent posts back to the page
retain the querystring. So if a user presses another button on the
form, .NET reposts this URL: mypage.aspx?id=foo (and my page_load
code is executed again).
What I'd like to do is remove the querystring ('?id=foo') from the URL
that .NET uses on all following post backs. I tried to do this
through some of the Request objects but had no luck (most were read
only).
Does anyone know how to modify the querystring or header stored by
..NET that's used for post back events?
~ Jon
I have hyperlink objects in a datagrid that redirect the user back to
the current page with this syntax:
<a href="mypage.aspx?id=foo">
When the page reloads, code in Page_Load then takes the appropriate
action based on finding the 'id' name/value pair in the URL
querystring. This works well.
However, I've noticed that all subsequent posts back to the page
retain the querystring. So if a user presses another button on the
form, .NET reposts this URL: mypage.aspx?id=foo (and my page_load
code is executed again).
What I'd like to do is remove the querystring ('?id=foo') from the URL
that .NET uses on all following post backs. I tried to do this
through some of the Request objects but had no luck (most were read
only).
Does anyone know how to modify the querystring or header stored by
..NET that's used for post back events?
~ Jon