Oliver
Jun 12th, 2000, 03:40 AM
Thanks for the responses, however none of them work at this time.....
I am busy writing a shopping cart using Visual Basic's webclass designer (IIS Application). I am creating the form dynamically (linked up to an event within the webclass - dynamically) and then want to submit the contents of the form using a hyperlink as opposed to a submit button.
Here is the code:
........
HERE I GENERATE THE FORM DYNAMICALLY AND LINK IT UP TO AN EVENT WITHIN THE WEBCLASS
TagContents = TagContents & "<FORM method=""post"" action=""Shopping.ASP?WCI=Basket&WCE=UpdateBasket&WCU"" name=""UpdateBasket"">"
........
SOME EXAMPLE LINKS THAT ARE LINKED UP TO AN EVENT WITHIN THE WEBCLASS (THE LINKS WORK 100%)
TagContents = TagContents & "<a href=""Shopping.ASP?WCI=Basket&WCE=Hyperlink1&WCU"">Checkout</a> | "
TagContents = TagContents & "<a href=""Shopping.ASP?WCI=Basket&WCE=Hyperlink2&WCU"">Clear Basket</a> | "
THIS IS WHERE I WOULD LIKE TO EXECUTE THE SUBMIT CODE
TagContents = TagContents & "<a href=""javascript:void"" onClick=""document.UpdateBasket.submit();"">Update</a>
</font></b></P></TD></TR>"
HERE I CLOSE THE DYNAMICALLY CREATED FORM
TagContents = TagContents & "</FORM>"
...........
Your help will be greatly appreciated.
Yours Sincerely
Oliver Hoppe
[Edited by Oliver on 06-12-2000 at 05:02 PM]
I am busy writing a shopping cart using Visual Basic's webclass designer (IIS Application). I am creating the form dynamically (linked up to an event within the webclass - dynamically) and then want to submit the contents of the form using a hyperlink as opposed to a submit button.
Here is the code:
........
HERE I GENERATE THE FORM DYNAMICALLY AND LINK IT UP TO AN EVENT WITHIN THE WEBCLASS
TagContents = TagContents & "<FORM method=""post"" action=""Shopping.ASP?WCI=Basket&WCE=UpdateBasket&WCU"" name=""UpdateBasket"">"
........
SOME EXAMPLE LINKS THAT ARE LINKED UP TO AN EVENT WITHIN THE WEBCLASS (THE LINKS WORK 100%)
TagContents = TagContents & "<a href=""Shopping.ASP?WCI=Basket&WCE=Hyperlink1&WCU"">Checkout</a> | "
TagContents = TagContents & "<a href=""Shopping.ASP?WCI=Basket&WCE=Hyperlink2&WCU"">Clear Basket</a> | "
THIS IS WHERE I WOULD LIKE TO EXECUTE THE SUBMIT CODE
TagContents = TagContents & "<a href=""javascript:void"" onClick=""document.UpdateBasket.submit();"">Update</a>
</font></b></P></TD></TR>"
HERE I CLOSE THE DYNAMICALLY CREATED FORM
TagContents = TagContents & "</FORM>"
...........
Your help will be greatly appreciated.
Yours Sincerely
Oliver Hoppe
[Edited by Oliver on 06-12-2000 at 05:02 PM]