簡體   English   中英

如何從 JScript/VBScript 調用系統代碼?

[英]How do I call system code from JScript/VBScript?

我有一個 C# 應用程序,它使用 web 瀏覽器控件來顯示一些 HTML 並在后台執行一些 JScript。

如何將其與其他系統調用集成? 我是否從 JScript/VBScript 調用其他 C# 代碼? 我需要從表格本身做嗎?

當我需要托管在 webbrowser 控件中的 javascript 來回調父級時,我讓它嘗試將頁面導航到另一個 URL。 Then in the webbrowser's "BeforeNavigate" event, I get the URL the page was trying to go to, parse out any arguments, dispatch the request to the other C# code, then cancel the original navigate request.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM