如何使用jQuery在单选按钮上将表单回发到选中的更改 [英] How to post back form on radio button checked change using jquery
问题描述
我正在开发一个应用程序,其中我在一个aspx页面上用json jQuery脚本编写了代码.所有数据都是通过Jquery发送和接收的.另外,我在同一组的页面上有5个单选按钮.我所有的jQuery代码在我的页面上都运行良好.但是我需要通过单选按钮检查更改后的代码后面的c#代码执行一些操作.但是,当我单击单选按钮时,它不会发布主页,也不会执行我的代码.因此,请帮帮我.
I am developing an application in which on one aspx page I have written code in json jQuery script. All data is send and receive through Jquery. In addition I have 5 radio buttons on my page of same group. All jQuery code is running fine on my page. But I need to perform some action through c# code behind code on radio button checked change. But when I click on radio button it doesn''t posts back page and my code doesn''t get executed. So please help me out.
推荐答案
将
AutoPostback = True
设置为RadioButton并双击该按钮将自动创建RadioButton服务器端发生事件.
谢谢,
Imdadhusen
to RadioButton and doubble click on RadioButton it will create automatically events at server side.
Thanks,
Imdadhusen
这篇关于如何使用jQuery在单选按钮上将表单回发到选中的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!