成功插入数据后如何清除单选按钮列表? [英] how to clear a radiobutton list after successful data insertion?

查看:28
本文介绍了成功插入数据后如何清除单选按钮列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮我解决这个简单的问题..如何在提交表单后清除单选按钮列表的选择.我需要在我的 asp.net web 应用程序中使用它.当用户点击清除按钮时,我需要清除单选按钮列表的选择.提前致谢

Can anybody please help me to resolve this simple issue..How to clear the selection of a radiobuttonlist after a form submission. i need to use it in my asp.net web application. when a user clicks on the clear button i need to clear the selection of radiobutton list.Thanks in advance

推荐答案

你可以- 要么设置 myrbList.SelectedIndex = -1,- 或 foreach 通过其 .Items 并设置每个 item.Selected = false

You could - either set myrbList.SelectedIndex = -1, - or foreach through its .Items and set each item.Selected = false

这篇关于成功插入数据后如何清除单选按钮列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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