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!

How do I exclude values on submit?

Status
Not open for further replies.

Wholsea

Programmer
Jun 16, 2004
138
US
We have a process that needs to submit a form away from our site.

The form is submitting the values we want, but it is also submitting other values (Like ViewState and other values we want to exclude)

Any idea on how to exclude certain values on page_submit?

TIA!

ASP, VB, VBS, Cold Fusion, SQL, DTS, T-SQL, PL-SQL, IBM-MQ, Crystal Reports, Crystal Enterprise
 
You can turn viewstate off. What other values are being sent that you don't want? Any object on the page will be sent.
 
Not sure if it is the best way or not, we have a bit of JavaScript that is rendered at run-time that changes the "action" property on the form (We do this because other buttons do different things on the form)

Maybe I should explain the process a bit different...

Customer enters page.
Customer Selects an option and clicks submit
Customer Verifies selection and clicks submit
Form is Posted to another website for processing

The page has 4 values that get posted:
ViewState
Selected Value
Site Key
Data Token

The Site key is what tells the remote site where the customer is coming from (Its a Unique ID for the "handoff")
The Data Token contains the encrypted values that the user has selected.

We do not want to send the ViewState or the Selected Value, just the Site Key and Data Token...

ASP, VB, VBS, Cold Fusion, SQL, DTS, T-SQL, PL-SQL, IBM-MQ, Crystal Reports, Crystal Enterprise
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top