Please can you help....you laugh this is so easy but I dont no what I am doing wrong....
I have to type a "0" (ZERO, no quotes) into a field before the Response.Redirect("./cart1.aspx") will run...but this does not seem to be doing the trick.
I can type it in the field and then run Response.Redirect("./cart1.aspx") and it works no problems.....
many thanks
Tony
dim getmeout as string
getmeout = "0"
txtQuantity.Text = getmeout
Response.Redirect("./cart1.aspx")
End SubThe value in your Response.Redirect appears to have a syntax error, there is only 1 period before the slash, where there should be 2 periods:
Response.Redirect("../cart1.aspx")
I'm afraid I can't understand what the problem is. Are you saying that you have to have a non-blank textbox before some event will fire, or will the event fire, but breaks on the Response.Redirect?
Hi Darren
Sorry I was unclear....
I have a textbox with number in it
I want to:
clear out the number from the text box
and assign 0 to the same textbox then run
Response.Redirect("./cart1.aspx")
and my code.. Im sure is wrong...
Thanks
Sub Button3_Click(sender As Object, e As EventArgs)
dim getmeout as string
getmeout = "0"
txtQuantity.Text = getmeout
Response.Redirect("./cart1.aspx")
End Sub
Redirect does not post the form, it just redirects to a new location using GET. Your textbox value gets lost, this is normal.
You may transmit values by appending a querystring to the redirect url.
0 comments:
Post a Comment