joecool2005 Posted April 19, 2006 Share Posted April 19, 2006 Is it possible to call a ASP function with onSubmit?I have tried like that and it did not work<%sub test() Response.Write("hello all")end sub%><FORM NAME="myForm" METHOD="POST" ENCTYPE="multipart/form-data" ACTION="" OnSubmit="<%call test()%>" > name: <INPUT TYPE="text" SIZE="40" NAME="key"><BR> INPUT TYPE=SUBMIT VALUE="Upload!"></FORM>thx Link to comment Share on other sites More sharing options...
aspnetguy Posted April 19, 2006 Share Posted April 19, 2006 I don't think what you are trying to do is possible.You might want to look into ASP.Net. Using hte built-in web controls allow you to execute server side functions on client events. Link to comment Share on other sites More sharing options...
Webworldx Posted April 19, 2006 Share Posted April 19, 2006 XMLHttpRequest might also be useful for this. Not too sure on how ASP implements this though, aspnetguy will probably know more than me Link to comment Share on other sites More sharing options...
Chocolate570 Posted April 19, 2006 Share Posted April 19, 2006 Try this page:http://www.codeproject.com/asp/formfunctions.aspI think it has what you want. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now