This code will allow you to pass values from asp.net controls to a standard asp page. The problem is standard asp pages don't recognize the forms that house .net controls because the forms are run at the server. You must have a form that is not running at the server for the asp page to retrieve values from. Since asp.net requires the form to run at the server, you must make two forms on your page. form1 is for objects that the asp page is to read from. form2 is for the asp.net controls. I put an html button on form2 that has javascript attached to its onclick event. The javascript fetches the values from form2 and puts them in form1, then submits form1 back to the asp page.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.