TipsOnLips.net

Your .net tips and tricks source

About the author

Author Name is someone.
E-mail me Send mail

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010


HTML Resources

  1. HTML and CSS Table Border Style Wizard
  2. 30 HTML Best Practices for Beginners

Categories: HTML
Posted by developer on Wednesday, April 22, 2009 10:30 AM
Permalink | Comments (0) | Post RSSRSS comment feed

ASP.NET Wizard Control - Jump to a WizardStep Programmatically - HowTo

The MoveTo method can be used to move to a particular step programmatically. The method's prototype is as follows:


public void MoveTo(WizardStep step)

 
The method is a simple wrapper around the setter of the ActiveStepIndex property and requires you to pass a WizardStep object, a requirement which can sometimes be problematic. If you want to jump to a particular step, however, setting the ActiveStepIndex property directly is just as effective. This can be useful in scenarios where a user's choice in a previous step eliminates the need to show a future step. For example, if a user selects "no gift wrapping" when making an online purchase, there's no point in showing them the step that presents gift wrapping options. When doing nonlinear navigation such as this, it's often beneficial to disable the sidebar display. Otherwise, a user would be able to randomly go to steps that might not have been part of their path.

 


Categories: ASP.NET
Posted by Admin on Thursday, April 16, 2009 6:01 AM
Permalink | Comments (0) | Post RSSRSS comment feed

ASP.NET - Change Wizard Control Buttons Caption

protected void wizRoles_NextButtonClick(object sender, WizardNavigationEventArgs e)

{
WizardStep currentStep = wizRoles.WizardSteps[e.CurrentStepIndex] as WizardStep;    
WizardStep nextStep = wizRoles.WizardSteps[e.NextStepIndex] as WizardStep;[more]

 switch (wizRoles.WizardSteps[e.NextStepIndex].StepType)

    {
case WizardStepType.Auto:

break;    
case
WizardStepType.Complete:

       break;

case WizardStepType.Finish:

break;

case WizardStepType.Start:

break;

case WizardStepType.Step:

SetupNextPreviousButtons(nextStep);

break;

default:

break;

}}


private void SetupNextPreviousButtons(Control nextStep)

{

    Button nextButton = (Button)wizRoles.FindControl("StepNavigationTemplateContainerID").FindControl("StepNextButton");

    Button previousButton = (Button)wizRoles.FindControl("StepNavigationTemplateContainerID").FindControl("StepPreviousButton");

 

    if (nextStep.ID == "stepSearchUsers")

    {

        nextButton.Text = "Create User";

        previousButton.Text = "Providers List";

 

    }

    else if (nextStep.ID == "stepCreateUser")

    {

        nextButton.Text = "Assign Roles";

        previousButton.Text = "Search Users";

    }

}

 


Categories: ASP.NET
Posted by Admin on Monday, April 13, 2009 8:28 AM
Permalink | Comments (0) | Post RSSRSS comment feed

"How Do I?" Videos for Team System

http://msdn.microsoft.com/en-au/vsts2008/bb507749.aspx?wt.slv=topsectionsee

Categories: VS 2008
Posted by developer on Wednesday, April 08, 2009 4:11 PM
Permalink | Comments (0) | Post RSSRSS comment feed

IGrouping Interface C#

Good article about the IGrouping Interface in C#


Categories: C#
Posted by developer on Wednesday, April 08, 2009 6:39 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Microsearch Color Picker

One of the best free Color pickers from Microsearch

Categories: Utility
Posted by developer on Tuesday, April 07, 2009 3:20 PM
Permalink | Comments (0) | Post RSSRSS comment feed

ASP.NET ViewState Resources


Categories: ASP.NET
Posted by developer on Tuesday, April 07, 2009 11:20 AM
Permalink | Comments (0) | Post RSSRSS comment feed

ASP.NET Tip - The control with ID 'conCave' requires a ScriptManager on the page Exception

It happens when your page code references a ScriptManager but your Page or MasterPage does not have it referenced, therefore just add:

<ASP:ScriptManager ID="SM1" runat="server />


Categories: ASP.NET
Posted by developer on Tuesday, April 07, 2009 3:43 AM
Permalink | Comments (0) | Post RSSRSS comment feed

ASP.NET Image Resources

  1. resizing uploaded image

Tags: ,
Categories: ASP.NET
Posted by developer on Monday, April 06, 2009 5:37 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Linq Resources and Articles

 


Tags:
Categories: LINQ
Posted by developer on Monday, April 06, 2009 5:23 AM
Permalink | Comments (0) | Post RSSRSS comment feed