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

  • Home
  • SEARCH
  • 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 8445389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:38:48+00:00 2026-06-10T09:38:48+00:00

I am familiar with CodeIgniter so I’m not a newbie, but I sure feel

  • 0

I am familiar with CodeIgniter so I’m not a newbie, but I sure feel like one as I move to MVC using C#/.NET. I would expect calling the below controller would properly bind the slash-delimited arguments of URL to the controller input params. Eg: I would expect http://localhost/Download/51 to give fileID=51. However, when I run this, fileID is null when controller is called. Either HttpGet needs querystring with ? and & or need to modify routes somehow to bind properly. Help, please?

[HttpGet]
    public ActionResult Download(String fileID)                
    {
    ....// http://localhost/Download/51 
    }
  • 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-10T09:38:49+00:00Added an answer on June 10, 2026 at 9:38 am

    Either use id which is the default route parameter name configured in your Global.asax:

    [HttpGet]
    public ActionResult Download(string id)
    {
        ....// http://localhost/Download/51 
    }
    

    or change your routing configuration so that fileID is used:

    routes.MapRoute(
        "Default",
        "{controller}/{action}/{fileid}",
        new { controller = "Home", action = "Index", fileid = UrlParameter.Optional }
    );
    

    Also checkout the following for more details on routing.

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

Sidebar

Related Questions

Im familiar with asp.net web forms. I would now like to move on to
I am coding my first CodeIgniter application (very familiar with PHP, but not CI)
I'm not familiar at all with the process behind this, but what I would
I am not very familiar with perl, but I am wondering if this would
That sounds familiar I'm sure, but it's not a CSS hack issue. I'm literally
I am not very familiar with the OAuth flow and/or encoding, but I've managed
I am pretty familiar with ASP.Net MVC, now I want to try some Spring
Im familiar with accessing parent windows like this: window.parent.document.getElementById(ad_nr) But what if I want
I'm not familiar with the back end of drupal whatsoever. All I'm using is
I am not very familiar with OpenGL but I tried to draw a simple

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.