且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在服务器端调用JavaScript函数

更新时间:2023-11-27 22:52:04

这是一种 ^ ].
您无需创建/更新先前的问题,而是创建一个新的问题.现在那旧的呢?那是封闭的吗?已经回答了吗?如果是这样,请采取适当的措施.

至于调用方法.您只需要绑定该方法即可.
This is a sort of repost[^].
Instead of posting/updating in earlier question you create a new one. Now what about old one? Is that closed? Already answered? If so, take appropriate action.

As for calling methods. You just need to tie that method.
btnSubmit.Attributes.Add("onclick","javascript:MyMethodName();");