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 8658833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:51:44+00:00 2026-06-12T15:51:44+00:00

As I am new to MVC 3 development I need some advice on the

  • 0

As I am new to MVC 3 development I need some advice on the best approach to a development task I am currently working on.

I am currently developing a payment forms application for the payment of various programmes eventually this will include a reasonable number of programmes most of which have at least three ways they can be paid (full payment, deposit and remainder – some also include discounts and a few can only be paid in full).

I need to decide on a best method for implementing a routes based strategy which will allow users to enter specific URLs for the programme they are looking to pay for, essentially all of the programmes require the same information to be entered the only differences being the cost of each programme and the date or dates that programme runs on.

I am trying to decide whether it would be better to have multiple views for each programme and then enter routes for each separate programme (I currently have over 30 programmes this includes full, deposit and remainder and a couple of discounts as well – this is likely to increase) or if it is possible to use routes to generate specific information for each programme in a single view so that I don’t have to replicate essentially the same code for 30+ views and controllers.

  • 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-12T15:51:45+00:00Added an answer on June 12, 2026 at 3:51 pm

    Thanks for the reply I worked it out the other day I have put the route in a foreach loop which generates the URL on the fly the route I have used is this:

    foreach (var programme in programmes)
                {
                    routes.MapRoute("ProgrammeArea" + " " + programme.Code,
                                    programme.Url + "/{action}/{id}",
                                    new { controller = "PaymentDetails", action = "Index", id = programme.Id }
                        );
                }
    

    the programme.Code ensures that each time the loop is run that the route name is unique, I am picking up the specific URL from the database

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

Sidebar

Related Questions

I'm developing a web application using ASP.NET MVC (I'm new to the framework and
My new ASP.NET MVC Web Application works on my development workstation, but does not
I'm new to web development and working on my first ASP.NET MVC 3 app.
I'm working on development of a social web application using Java. I need to
i'm new in the asp.net mvc development and have a quastin about the standart
Basically what the title says. I created a new MVC application. I'm trying to
I'm new to asp.net mvc and web development in general and would like to
I have a new MVC application which integrates into a larger pre-existing intranet site.
One of my New Year's Resolutions is to finally learn some web development. I've
Still new to ASP MVC development. Suppose I have a MusicController that has 2

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.