从 javascript 函数调用 vb.net 子路由? [英] call a vb.net subrouting from a javascript function?

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

问题描述

大家好,我在后面的代码中有一个名为 CheckDate() 的子程序.

hi folks i have a subroutine called CheckDate() in the code behind.

如何从 javascript 函数调用该子程序?

How would I call that subroutine from a javascript function?

干杯,

-琼斯

推荐答案

不能像函数调用那样直接调用.因为 Javascript 是一种针对网络浏览器的脚本语言.

You can't call it directly as function call. because Javascript is a scripting langauge aimed for web browsers.

您可以使用 AJAX 或整页帖子发送参数以允许您执行子程序.

you may use AJAX or full page post sending the parameters to allow you to execute the subroutine.

阅读有关 Ajax 的更多信息,这是更好的方法.

Read more about Ajax it is the better way to go.

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

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