在Web用户控件之间切换 [英] Switch between Web User Controls

查看:56
本文介绍了在Web用户控件之间切换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在asp.net页面有两个网页用户控件...

我想做的是,当我点击一个用户控件中的按钮时,它应该消失并且

其他用户控件应该出现....当我点击后退按钮时,这将会消失,旧的将会出现...



任何想法都可以在webcontrols中实现,(不是页面,因为我只给用户控件,,,)

解决方案

发布以从未答复的列表中删除问题。 OP通过评论找到解决方案:





你能否使用简单的control.visible =是或否'

http://www.google.de/ #q = asp.net +控制+可见性 [ ^ ]

Hi,

I have two web user controls in asp.net page...
What I want to do is, when I click on a button in one user control, It should disappear and
other user control should appear.... and when I click the back button, this will go off, and the old will come...

Any idea to make it in webcontrols,, (Not Pages, as I am giving the user controls only,,, )

解决方案

Posting to remove question from unanswered list. OP found solution through the comment:


Can you not use the simple "control.visible = TRUE or FALSE"?
http://www.google.de/#q=asp.net+controls+visibility[^]


这篇关于在Web用户控件之间切换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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