如何在按钮的单击事件的多视图控件中导航到特定视图? [英] How to navigate to a specific view in multiview control on the click event of button?

查看:77
本文介绍了如何在按钮的单击事件的多视图控件中导航到特定视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有多视图控件,在多视图控件中我也有20个视图。我有20个按钮。我想导航到按钮点击事件的特定视图。

I have multiview control and in that multiview control i also have 20 views. and one side i have 20 buttons.I wants to navigate to the specific view on the click event of button.

推荐答案

MultiView的ActiveViewIndex属性,控制当前视图为show ...点击按钮更改它...

https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.multiview.activeviewindex(v = vs.110)的.aspx [ ^ ]
ActiveViewIndex property of MultiView, controls the current view to show...Change it on button click...
https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.multiview.activeviewindex(v=vs.110).aspx[^]


这篇关于如何在按钮的单击事件的多视图控件中导航到特定视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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