页面提交未选中单选按钮 [英] Radio Button Got unchecked on page submission

查看:113
本文介绍了页面提交未选中单选按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一种使用数据列表控件内部的单选按钮的情况.
但是现在的问题是,当我们单击提交"按钮时,这些按钮未被选中.
有人可以告诉我如何克服这个问题吗?

I have scenario in which i am using radio buttons inside data list control.
But Now the Problem is this , that when we click on submit button the buttons got unchecked.
Can anybody tell me how to overcome this?

推荐答案

1.确保ViewState已打开.
2.确保在PageLoad期间没有数据绑定,并且确保检查IsPostBack
3.在看不到您的代码的情况下,您将不得不对其进行调试.
1. Make sure ViewState is turned on.
2. Make sure you are not databinding during the PageLoad and if you are be sure to check for IsPostBack
3. Without seeing your code, you''ll have to debug it.


这篇关于页面提交未选中单选按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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