简体   繁体   中英

Calling a VB.net Function from VBScript

In my aspx page I have a button and onClientClick I am calling a vbScript function. I need to use VBScript as the third party ActiveX supports only vbScript.

OnClientClick I am populating couple of ASP.net textboxes. How do I call a VB.net procedure that is in the code-behind from vbScript.

As I cannot call both OnClientClick and onClick of the buttons at once, How do I call the server Side procedure from vbScript.

This is an old question, so I'm not sure it has been solved. As has been pointed out it lackes some details, but just for the fun of it I'll provide a possible solution. From what I understand I would do the following. From vbScript call a (web) service or an aspx-page. Have this service/page return a JSON object with all necessary values. JSON is just text, so it can be easily parsed to fill the text boxes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM