|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to have either/or steps in a wizardHi;
I have a wizard where page 1 has a radio selection of Sql database or xml. If it's sql ! want to then go to page 2 and hide page 3. If xml I want to go to page 3 and hide page 2. Can I do this? Or is there a better way to do this? Like disable page 2 or 3 and it skips it and has it greyed in the navigation pane? Hi Dave,
Thank you for your post. Based on my understanding, your question is how to dynamically determine which step to show based on user's choice. If I've misunderstood anything, please feel free to post here. As far as I know, the Wizard steps cannot be disabled by default. I recommend you use a MultiView in Step 2 and create 2 View in it, one is used to display data when the user selects Sql, another is used to display data when the user selects Xml. And you handle the NextButtonClick event of Wizard to check the RadioButtonList's value and set MultiView's ActiveViewIndex accordingly: protected void Wizard1_NextButtonClick(object sender, WizardNavigationEventArgs e) { if (Wizard1.ActiveStepIndex == 0) { if (RadioButtonList1.SelectedIndex == 0) { MultiView1.ActiveViewIndex = 0; } else { MultiView1.ActiveViewIndex = 1; } } } Hope this helps. Please feel free to post here if anything is unclear. Regards, Walter Wang (waw***@online.microsoft.com, remove 'online.') Microsoft Online Community Support ================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. Yuck - ok thanks
Show quoteHide quote "Walter Wang [MSFT]" wrote: > Hi Dave, > > Thank you for your post. > > Based on my understanding, your question is how to dynamically determine > which step to show based on user's choice. If I've misunderstood anything, > please feel free to post here. > > As far as I know, the Wizard steps cannot be disabled by default. > > I recommend you use a MultiView in Step 2 and create 2 View in it, one is > used to display data when the user selects Sql, another is used to display > data when the user selects Xml. And you handle the NextButtonClick event of > Wizard to check the RadioButtonList's value and set MultiView's > ActiveViewIndex accordingly: > > protected void Wizard1_NextButtonClick(object sender, > WizardNavigationEventArgs e) > { > if (Wizard1.ActiveStepIndex == 0) > { > if (RadioButtonList1.SelectedIndex == 0) > { > MultiView1.ActiveViewIndex = 0; > } else > { > MultiView1.ActiveViewIndex = 1; > } > } > } > > Hope this helps. Please feel free to post here if anything is unclear. > > > Regards, > Walter Wang (waw***@online.microsoft.com, remove 'online.') > Microsoft Online Community Support > > ================================================== > When responding to posts, please "Reply to Group" via your newsreader so > that others may learn and benefit from your issue. > ================================================== > > This posting is provided "AS IS" with no warranties, and confers no rights. > > Hi Dave,
Thank you for your update. I understand that this solution may not be the ideal one that you're after. I've done more research later but still didn't find way to disable individual wizard steps. If you have any concerns about this issue, please feel free to post here. Also, if you would like to submit a feedback to Visual Studio, you can submit it here: http://msdn.microsoft.com/feedback Regards, Walter Wang (waw***@online.microsoft.com, remove 'online.') Microsoft Online Community Support ================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. Thank you for looking more. What I am doing is I have all the steps, I
disable the navigation bar, and I skip steps as needed. Your telling me that there is no way to disable helped - because I stopped looking for a way to do that. Show quoteHide quote "Walter Wang [MSFT]" wrote: > Hi Dave, > > Thank you for your update. > > I understand that this solution may not be the ideal one that you're after. > I've done more research later but still didn't find way to disable > individual wizard steps. If you have any concerns about this issue, please > feel free to post here. > > Also, if you would like to submit a feedback to Visual Studio, you can > submit it here: > > http://msdn.microsoft.com/feedback > > > > > Regards, > Walter Wang (waw***@online.microsoft.com, remove 'online.') > Microsoft Online Community Support > > ================================================== > When responding to posts, please "Reply to Group" via your newsreader so > that others may learn and benefit from your issue. > ================================================== > > This posting is provided "AS IS" with no warranties, and confers no rights. > > Thanks Dave for your quick update.
Regards, Walter Wang (waw***@online.microsoft.com, remove 'online.') Microsoft Online Community Support ================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
Hyperlink control - embedded spaces converted
Auto Postback Handling in controls Setting Properties in a Composite Control... Repeater and text boxes inside Programmatically listening for an event? WebPartManager1.CloseWebPart Error Multi-line textbox scrolled to bottom? Problem handling event in a button inside a Datalist Can't install iewebcontrols.msi - error "webctrl_client is unavailable" passing variable to sql statement in asp.net 2.0? |
|||||||||||||||||||||||