Re: Set A Parameter Without Redirecting A Page?




ok, thanks mark.

i dont think this will work as the updated parameter is created in a
while
loop that outputs many values - this is a count.

what i have done is pass my url querystring through a hidden iframe
from
the referring page (i am uploading files). now, what i want to do is
send a
count back to the referring page (the count represents upload time). i
thought i might be able to do this in the querystring but this would
cause
numerous postbacks in sequence - not pretty.

since it looks like doing it via the querystring is a no-go, do you
have any ideas how
i might send the upload count back to the referring page? is it
possible to send an ajax response from the server when the client does
not initiate the call?

thanks.
peter

Mark Fitzpatrick wrote:
Querystring parameters cannot be reset dynamically as they represent a
read-only collection of items in the url.

Of course, something else you could do would be to have a series of local
variables or protected properties that would initially populate from this
list, then change the variable in postback. This would work nicely if you're
using AJAX because then you wouldn't be posting back the whole page. If
you're not using AJAX, then using a response.redirect doesn't effect you
much because you'll have a full page postback and might as well do the
redirect to avoid worrying about keeping parameter updates in a viewstate.


--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006



"pbd22" <dushkin@xxxxxxxxx> wrote in message
news:1167335417.354465.213040@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
can somebody tell me how to set a parameter of my current URL

without using response.redirect?

I am trying to set a parameter - ResponseId = 4 inside a while loop. is
this possible?

also, is it possible to replace the value of the ResponseId parameter
to, say "5" in the same way?

thanks!


.



Relevant Pages

  • Re: Looping through output
    ... loop while a condition is true. ... use AJAX to poll the server every few seconds (but not too often as it ... server would act with so many requests but now I see I need to be ...
    (comp.lang.php)
  • Re: Incrementing a month value
    ... then runs a loop that the user inputs a number of months ... >> With each loop I have used the stored procedure DateAdd to increase the ... Hi Mark ... if TA# is a text field, enclose strTA with single quotes as below (I ...
    (microsoft.public.access.modulesdaovba)
  • Re: Creating variables in a loop!
    ... Mark, thanks for the response, I appreciate it. ... retrieve the information back from the ... of the loop and doesn't exist outside it. ... CheckBox chk = new CheckBox; ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: More STL questions
    ... > Mark P wrote: ... >>My concern in this situation is that every time I execute the for loop ... >>within the loop, and expecting it to be safely available in mySet during ... > When you ask an STL container to add something to it, ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Async thread not freeing up UI
    ... What do I do with Queue? ... >> Private Sub AB_Click(ByVal sender As System.Object, ... >> threading logic works fine with a local function that simply runs a loop ...
    (microsoft.public.dotnet.languages.vb)