在javascript中调用VB.NET函数? [英] call VB.NET function in javascript ?

查看:76
本文介绍了在javascript中调用VB.NET函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个VB.NET函数,我想从javascript函数调用它。

我如何?



谢谢,

Mangesh: - )

I have a VB.NET function and i want to call it from javascript function.
How do i ?

Thanks,
Mangesh :-)

推荐答案

你不能 - 执行Javascript代码客户端和VB代码执行服务器端 - 否则客户端第一次访问您的网站时必须下载整个.NET框架!



虽然有一些workrounds:http://www.dotnetcurry.com/ShowArticle.aspx?ID=109 [ ^ ]
You can't - Javascript code is executed Client side and VB code is executed Server side - otherwise the client would have to download the whole of the .NET framework the first time they visited your website!

There are a few workrounds though: http://www.dotnetcurry.com/ShowArticle.aspx?ID=109[^]


这篇关于在javascript中调用VB.NET函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆