如何刷新我的添加页面. [英] how can i refresh my adding page.?

查看:83
本文介绍了如何刷新我的添加页面.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好程序员.

我对如何刷新我的添加页面有疑问.

我有一个新用户的添加页面,并且在该页面上.我有一个下拉列表.
添加没有任何问题.

我的问题是当我再次开始添加时.我的下拉菜单的选定值仍然保留.

我想要的是当我再次添加新用户时,我的下拉菜单.将重设为我的默认值.


希望您能够帮助我.
谢谢.:)


-chaosgray-

解决方案

您可以尝试OnSelectedValueChange事件,然后选择Dropdownlist1.选择第一个值

只需重置您的值添加完成后的DropDownList ...
例如DropDownList1.SelectedIndex = 0;


hello programmers.

i have a problem on how i can refresh my adding page.

i have a adding page for a new user, and on that page. i have a dropdownlist.
a don''t have any problems in adding.

my problem is when i start adding again. the selected value of my dropdown is still remains.

and i want is when i add again a new user, my dropdown. will be reset back to my default value.


hope you can help me.
thank you.:)


-chaosgray-

解决方案

You can try OnSelectedValueChange event and then Dropdownlist1.select the first value


Just reset the value of your DropDownList after adding completion...
e.g. DropDownList1.SelectedIndex=0;


这篇关于如何刷新我的添加页面.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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