在c#asp.net 2.0上单击下拉列表选中索引已更改,之前的textboxex已清除,但不应清除.. [英] in c# asp.net 2.0 on clicking dropdown selected index changed the previous textboxex are getting cleared but it should not get cleared ..

查看:106
本文介绍了在c#asp.net 2.0上单击下拉列表选中索引已更改,之前的textboxex已清除,但不应清除..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在c#asp.net 2.0上单击下拉列表选中索引已更改,之前的文本框iepassword文本框和确认密码文本框已被清除,不知道我在哪里弄错..它不应该被清除..有任何可能的方式对于文本框不要被清除..我没有写任何代码获取清除下拉选择索引已更改..请任何人打电话我在哪里我错了..

in c# asp.net 2.0 on clicking dropdown selected index changed ,the previous textboxes i.e.password textbox and confirm password textbox are getting cleared dont know where i am making mistake ..it should not get cleared ..is there any possible way for the textboxes not to get cleared..and i have''nt wrote any code for getting cleared too in dropdown selected index changed..please anyone tel me where i am going wrong..

推荐答案

你可以使用AJAX控件。添加ajax控件的更新面板中的下拉列表,当您更改下拉列表中的选择时,您将只刷新面板而不刷新页面,因此您的值将保持不变。
you can use the AJAX control. ADD the drop down list in the update panel of the ajax control and when you change the selection in the dropdown you will only refresh the panel but not the page hence your values will remain as it is.


这篇关于在c#asp.net 2.0上单击下拉列表选中索引已更改,之前的textboxex已清除,但不应清除..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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