how to set ActiveViewIndex?
-
Hello Can anybody help me how to set ActiveViewIndex in Wizard control? I am getting this error while binding the wizard dynamically.. ActiveViewIndex is being set to '2'. It must be smaller than the current number of View controls '2'. For dynamically added views, make sure they are added before or in Page_PreInit event. Parameter name: value Thank in advance kokila
-
Hello Can anybody help me how to set ActiveViewIndex in Wizard control? I am getting this error while binding the wizard dynamically.. ActiveViewIndex is being set to '2'. It must be smaller than the current number of View controls '2'. For dynamically added views, make sure they are added before or in Page_PreInit event. Parameter name: value Thank in advance kokila
The answer is in the error message. You're trying to set the value of ActiveViewIndex to 2 when there are two items in its collection, numbered index 0 and index 1. Try setting it to 1 instead.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
The answer is in the error message. You're trying to set the value of ActiveViewIndex to 2 when there are two items in its collection, numbered index 0 and index 1. Try setting it to 1 instead.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007