1

I am using textbox (txtFileType) with event OnFocus=("this.blur();"), so I can't use textchanged event for this textbox, I have written a vb code to calculate my FileNumber using stored procedures based on the value of textbox (txtFileType).

Can I call this vb code from javascript which can be used in clientside.. please help with an example.. or any other possible ways..

2 Answers 2

1

i assume your vb code is going to reside on the server side. you can expose the server side method as a service and invoke it using javascript. For ajax purpose you can probably look at this tutorial from Microsoft itself.

Sign up to request clarification or add additional context in comments.

Comments

1

Sounds like you need to call a web service method through your page to process. Try this example and let me know if it helps.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.