Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8128765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:01:38+00:00 2026-06-06T08:01:38+00:00

I have a web site (ASP.NET, no MVC) with multiple web forms for filling

  • 0

I have a web site (ASP.NET, no MVC) with multiple web forms for filling out data for customers wizardry style.

Let’s say I have Form1, Form2, Form3, Form4, Form5, Form6, form7
All but first and last forms have a Next and Previous button with simple code for redirect, for example on Form4

btnNext_Click -> Response.Redirect("Form5.aspx");
btnPrevious_Click -> Response.Redirect("Form3.aspx");

Works fine but on the first form there’s a radiobutton list and depending on what’s been selected some forms should be skipped so I can’t hard code the navigation anymore. I.e.
if radiobutton 1 is selected then the wizard would be

Form1 -> Form2 -> Form6 -> Form7

if radiobutton 2 is selected then the wizard would be

Form2- > Form3 -> Form7

Radiobutton list is customer type and will be saved to the DB with the rest of the data.

Not looking for complete code sample but more so how you would go on about doing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T08:01:40+00:00Added an answer on June 6, 2026 at 8:01 am

    Create a separate class with Switch .. Case code to handle the appropriate code branching.

    class OpenWebForm
    {
        protected void SelectForm(string option)
        {
            switch (option)
            {
                case "1":
    
                    break;
    
                case "2":
    
                    break:
    
            }
    
        }
    }
    

    Create an instance of this class and pass the selected option as parameter. In your Web Form’s Next Button Click, call the method of this class.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is regarding ASP.NET MVC. Let's say I have a web site that is
i have a hosted web site and i have an asp.net mvc site. The
I have an ASP.NET MVC web site. I have many actions which require authentication
I have an ASP .net MVC 2.0 web site and I am using the
I have an asp.net (mvc) web site. As the part of the functions I
I have an ASP.NET MVC 3 web site that uses Windows Authentication running under
I have integrated ASP.NET MVC 4 into existing asp.net web site. Both works fine
I have an ASP.NET MVC web site with a database of songs. I'd like
I have an ASP.NET MVC 2 web-site. All the buisnes is in the databse
I have an Asp.NET MVC site that I manage multiple instances of. Each instance

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.