如何在Asp.Net中回页时检查自动单选按钮是否可行 [英] How Can I Diable The Automatic Radio Button Checked When The Page Has Been Post Back In Asp.Net

查看:100
本文介绍了如何在Asp.Net中回页时检查自动单选按钮是否可行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想创建一个在线考试项目。我已经放了一个单选按钮来寻找答案。如果我选择radiobutton1 checked = true,我按下提交按钮,然后相同的radiobutton检查下一个问题。我想禁用此操作。请帮帮我..

Hi all,

i want to create a project for online examination. I have put a radio button for answers. if i select the radiobutton1 checked=true, i press the submit button then same radiobutton have checked for next question. I want to disable this action. please help me..

推荐答案

set



set

RadioButtonID.Checked = false;  





按下保存按钮后,所有RADIOBUTTON都检查为false ..: )



ALL RADIOBUTTON checked false after press save button of an answer.. :)


在回发中你需要将当前的问题信息保存到数据库,然后加载下一个问题。当您加载下一个问题时,您可以将所有控件重置为初始状态。例如,清除文本框(如果有),清除组合框的选择等。清除复选框的选择等。
in postback you need to save the current question information to database and then load the next question. when you load the next question you can reset all the controls to initial state. for example clear the text boxes if any, clear the selections of combo boxes etc.. clear the selections of checkboxes etc..


这篇关于如何在Asp.Net中回页时检查自动单选按钮是否可行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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