How to call vb function from javascript
I am using textbox (txtFileType) with OnFocus = ("this.blur ();") event, so I cannot use the textchanged event for this textbox, I wrote vb code to calculate my FileNumber using stored procedures based on the value of the textbox (txtFileType).
Is it possible to call this vb code from javascript that can be used on clients. Please help with an example .. or any other way possible.
+1
a source to share
2 answers
I am assuming your vb code will be server side. you can expose server side method as a service and call it using javascript. For ajax purpose, you can probably look at this tutorial from Microsoft itself.
+1
a source to share
It looks like you need to call a web service method through your page for processing. Try this example and let me know if it helps.
+1
a source to share