Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MultiView by ID?

Is there a way to set the active view in a MultiView by ID rather than by index?

Something like this?

multiviewProgress.Views["step3"].SetToActiveView();
like image 343
rlb.usa Avatar asked May 06 '10 15:05

rlb.usa


1 Answers

I believe you can just do something like this:

 myMultiView.SetActiveView(nameOfView);

where nameOfView is the ID given at design time. This example shows you how to do it.

like image 93
Nick DeVore Avatar answered Oct 01 '22 02:10

Nick DeVore