如何编写Java脚本函数来触发服务器端按钮单击evet,而无需手动单击该按钮 [英] How to writ Java Script function to fire server side button click evet without manually click that buttong

查看:112
本文介绍了如何编写Java脚本函数来触发服务器端按钮单击evet,而无需手动单击该按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户单击单选按钮列表的一项时,我想弹出ajax modat弹出扩展器.该单选列表按钮作为项目模板位于gridview内.从弹出窗口中,让用户选择一些选项并输入一些数据.当用户从弹出框中单击确定"按钮时,用户键入的值将被带回到服务器端数据网格.

I want to pop up the ajax modat popup extender when the user click one of the radio button list''s item. That radio list buttons are located inside the gridview as Item template. From the pop up , let the user choose some options and enter some data. When user click ok button from the pop up box, the values that user key in are taken back to server side datagrid.

推荐答案

您好,
您的问题不清楚.
但您只想从javascript触发服务器端按钮
您可以使用javascript的__doPostBack()函数

希望有帮助
病毒
Hi,
Your question is not clear.,
But you only want to fire server side button from javascript then
you can use __doPostBack() function of javascript

Hope this help
Viral


使用OnClientClick属性调用js函数
use the OnClientClick property to call a js function


这篇关于如何编写Java脚本函数来触发服务器端按钮单击evet,而无需手动单击该按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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