I was asked to research this question at work and I haven't found anything useful. I understand this is a terrible approach to submitting data, but it's a quick workaround before a full re-build.
I have an .aspx page that does some custom validation on the form submission. If this passes validation, I want to submit the form to a classic .asp page and retrieve the form values. I was trying to do it via javascript, but that was unsuccessful.
Basically binding the .asp page to the form action and submitting it. Something like;
If success = true then
Dim script As String = "<script>document.forms[0].action='/d_form/Email_BOS_FormConfirm_NET.asp';"
script += "document.forms[0].submit();"
script += "</script"
script += ">"
ClientScript.RegisterClientScriptBlock(Me.[GetType](), "postform", script)
End If
This is not my formatting, just what i was given to work off of, this posts to the form in the action, but i can not retrieve any data from the request.form() method.
any help is appreciated.
Aucun commentaire:
Enregistrer un commentaire