Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide a Wizard Step

Status
Not open for further replies.

VergeResources

Programmer
Feb 6, 2002
40
US
Does anyone know how to hide a wizard step programmatically? Looping through the WizardStepCollection and setting visible = false on a specific step causes an error (unless it happens to be the active step).

Another alternative would be to hide the sidebar item, but I don't see a way to access it...

Thanks in advance!
 
Verge: can you place the Wizard between <span>..</span> tags and set the span to style="display:none;" (you should be able to manipulate the css from code-behind or even java).

How about setting the WSC = Nothing? Haven't used the WSC to date (sounds interesting).
 
Verge: Couple of Links

Re: Sidebar[/Lin]

[url=http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet.webcontrols/browse_thread/thread/b2ca553e7a501021/e24235486ba91b35?lnk=st&q=WizardStep&rnum=18&hl=en#e24235486ba91b35]MSN code re:WizardStep


Verge, perhaps others here have had more experience in this area and will drop by with a few ideas - Just a couple of links I ran across - it seems that sidebar is rendered early (according to one thread I reviewed)in the aspx page. I could not find any threads here at Tek-Tips asp.net re: WizardStep.
 
If anyone has come across a nice solution to dynamically changing the sidebar list of a wizard control (i.e. hide steps based on a status) please let me know. None of the suggested links had information I was able to use.

So, I'm still trying to find the best solution to this issue. Currently, I redirect the user if they hit a step I don't want them to use. But, this seems kind of hokey since the step name still appears in the sidebar....

Thanks in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top