Hi.
Is there a way I can convert a string (let's say it's"vw501") sent by a querystring, to a Control's ClientID, like myMultiView.SetActiceView(vw501) ?
I've tried this, which fails:
Dim vName As String = TRim(Request.Querystring("vName"))
myMultiView.SetActiveView(vName)
Regards,
Roy
The FindControl method might help you there. Seehttp://msdn2.microsoft.com/de-de/library/system.web.ui.control.findcontrol.aspx
Make sure you use the FindControl method on the Control your views are nested in. Say if your Views are inside a Form named form1, like so:
myMultiView.SetActiveView( form1.FindControl(vName) )
Thanks a lot :-)
It works!
Roy
0 comments:
Post a Comment