Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing viewstate from POST

Status
Not open for further replies.

haddaway

Programmer
Jul 6, 2005
172
SE
I post some hidden variables to a payment site (2CheckOut). The problem is that the viewstate is posted to that page as well. This causes my receiving script to crash because it doesn't like being posted a strange viewstate or that the viewstate has been malformed.

How can I remove viewstate from the post? I have set enableviewstate to false and went through every control. It still posts that viewstate.
 
Hey, google is my friend but it let me down, that's because I went here. Anyway, I just solved the problem with javascript :) I did document.order.__ViewState.disabled = "disabled"; then posted.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top