473,320 Members | 2,193 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to clear the querystring?

when using the page to POST (from a form) I want the page's querystring to
be cleared, how do I do that?
Nov 18 '05 #1
5 5655
Response.Redirect("theSamePage.aspx<no querystring>");

"Davids" <db****@simnet.is> wrote in message
news:Od**************@TK2MSFTNGP12.phx.gbl...
when using the page to POST (from a form) I want the page's querystring to
be cleared, how do I do that?

Nov 18 '05 #2
don't you think that is a waste of resources, there must be some way to the
property server side so the form action="..." string is clear of parameters
on next roundtrip...
"mortb" <mortb1<noospam<@hotmail.com> wrote in message
news:up**************@tk2msftngp13.phx.gbl...
Response.Redirect("theSamePage.aspx<no querystring>");

"Davids" <db****@simnet.is> wrote in message
news:Od**************@TK2MSFTNGP12.phx.gbl...
when using the page to POST (from a form) I want the page's querystring
to be cleared, how do I do that?


Nov 18 '05 #3
You could use JavaScript to alter the action attribute handled automatically
by ASP.NET or ignore just the querystring if you have some other piece of
information handy and left it intact.

The exact reason for clearing the querystring may help to raise better
suggestions...

Patrice

--

"Davids" <db****@simnet.is> a écrit dans le message de
news:%2****************@TK2MSFTNGP09.phx.gbl...
don't you think that is a waste of resources, there must be some way to the property server side so the form action="..." string is clear of parameters on next roundtrip...
"mortb" <mortb1<noospam<@hotmail.com> wrote in message
news:up**************@tk2msftngp13.phx.gbl...
Response.Redirect("theSamePage.aspx<no querystring>");

"Davids" <db****@simnet.is> wrote in message
news:Od**************@TK2MSFTNGP12.phx.gbl...
when using the page to POST (from a form) I want the page's querystring
to be cleared, how do I do that?



Nov 18 '05 #4
well I am doing a hangman page. The form is reset when I press a (href) link
for "new game" which then uses a querystring. I know there are other methods
but I'd still like to know if this way is possible...

"Patrice" <no****@nowhere.com> wrote in message
news:uD**************@TK2MSFTNGP09.phx.gbl...
You could use JavaScript to alter the action attribute handled
automatically
by ASP.NET or ignore just the querystring if you have some other piece of
information handy and left it intact.

The exact reason for clearing the querystring may help to raise better
suggestions...

Patrice

--

"Davids" <db****@simnet.is> a écrit dans le message de
news:%2****************@TK2MSFTNGP09.phx.gbl...
don't you think that is a waste of resources, there must be some way to

the
property server side so the form action="..." string is clear of

parameters
on next roundtrip...
"mortb" <mortb1<noospam<@hotmail.com> wrote in message
news:up**************@tk2msftngp13.phx.gbl...
> Response.Redirect("theSamePage.aspx<no querystring>");
>
> "Davids" <db****@simnet.is> wrote in message
> news:Od**************@TK2MSFTNGP12.phx.gbl...
>> when using the page to POST (from a form) I want the page's
>> querystring
>> to be cleared, how do I do that?
>>
>
>



Nov 18 '05 #5
See above. It's likely best to always use the same way to submit
informations...

You could also ignore the query string if the method is POST. For simplicity
you could use GET and a special value for the new letter would indicate a
restart... etc...

Patrice

--

"Davids" <db****@simnet.is> a écrit dans le message de
news:ua**************@TK2MSFTNGP12.phx.gbl...
well I am doing a hangman page. The form is reset when I press a (href) link for "new game" which then uses a querystring. I know there are other methods but I'd still like to know if this way is possible...

"Patrice" <no****@nowhere.com> wrote in message
news:uD**************@TK2MSFTNGP09.phx.gbl...
You could use JavaScript to alter the action attribute handled
automatically
by ASP.NET or ignore just the querystring if you have some other piece of information handy and left it intact.

The exact reason for clearing the querystring may help to raise better
suggestions...

Patrice

--

"Davids" <db****@simnet.is> a écrit dans le message de
news:%2****************@TK2MSFTNGP09.phx.gbl...
don't you think that is a waste of resources, there must be some way to

the
property server side so the form action="..." string is clear of

parameters
on next roundtrip...
"mortb" <mortb1<noospam<@hotmail.com> wrote in message
news:up**************@tk2msftngp13.phx.gbl...
> Response.Redirect("theSamePage.aspx<no querystring>");
>
> "Davids" <db****@simnet.is> wrote in message
> news:Od**************@TK2MSFTNGP12.phx.gbl...
>> when using the page to POST (from a form) I want the page's
>> querystring
>> to be cleared, how do I do that?
>>
>
>



Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Arpan | last post by:
A link has the following URL: <a href="Page1.asp?cname=<%= Request.QueryString("cname") %>&cadd1=<%= Request.QueryString("cadd1") %>&cadd2=<%= Request.QueryString("cadd2") %>&cplace=<%=...
1
by: lion | last post by:
my Problem: a query string passed into a html page doesn't display correctly on a mac I am just using html and javascript (no ASP, PHP or server side scripting) This is the query string:...
4
by: Raterus | last post by:
Howdy, Simple question, but I can't figure out how to do it. I have a a page which is called initially with a querystring. After I get the querystring values, I don't need the querystring to...
4
by: moondaddy | last post by:
I'm passing a parameter in the url when I open up a particular page. When the page loads and finds this parameter, I know that I need to clear a variable out of the session cache and reset it with...
12
by: Alex | last post by:
I have a question about determining if one QueryString keys exists. The idea is, if this key exists, than its presence is enough to indicate that its value is true. For example ... ...
3
by: Dan Sikorsky | last post by:
How can I get the Querystring passed to the Referring Page from its referrer? I don't want the querystring coming to my current page. I want the querystring that came to the referring page, so...
0
by: Steven Nagy | last post by:
howdy all, As suggested, I have a web page that is executing the page life cycle twice (Init, page_load, prerender, etc) You arrive at this page by a common client side link. There is nothing...
1
by: prabhu A | last post by:
I have a page which is called initially with a querystring. After I get the querystring values, I don't need the querystring to appear in the url anymore. How can I get rid of it? A postback...
3
by: pingsheng | last post by:
Dear all, I have a form with dynamically created input fields. These fields go to next page for submitting into SQL database. The thing is all fields are the same but 4 fields. So each record...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.