简体   繁体   中英

about redirecting from one view to another view in a multiview

I want to redirect from one view to another view in a multiview on the same page at a button click event, so can anyone help, please. Thanks in advance.

如下设置MultiView的ActiveViewIndex属性。

MultiView1.ActiveViewIndex = 1;

You can use SetActiveView Method to target your desired view.

 protected void ButtonClick(object sender, Eventargs e)
 {
    MultiView.SetActiveView(ViewName);
 }

This will work even if you change your view position or index because it will target the specified view directly regardless its index or position within Multiview.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM