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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:15:03+00:00 2026-05-25T19:15:03+00:00

I am using doodle report which outputs quick reports in pds, html and xls

  • 0

I am using doodle report which outputs quick reports in pds, html and xls formats. It is working fine as shown in the documentation link below:

http://doddlereport.codeplex.com/wikipage?title=Web%20Reporting

Now i need to be able to pass an ID value to the controller so report is generated dynamically.

the default route is as follows:

     return routes.MapRoute("DoddleReport",
                "{controller}/{action}.{extension}",
                new { controller = defaultAction, action = defaultAction },
                new { extension = new ReportRouteConstraint() }

which outputs the following url localhost/Report/ReadMeters.htm when using the following

actionlink @Html.ActionLink("HTM", "ReadMeters", new{ extension = "htm"})

I have tried to add a new route in global.asax that will accept an ID parameter as follows:

 routes.MapRoute("DoddleReportExtension",
                "{controller}/{action}.{extension}/id",
                new { controller = "Report", action = "Index" },
                new { extension = new ReportRouteConstraint(),
                id = UrlParameter.Optional
                }
                );

and passing the value using actionlink:

@Html.ActionLink("View", "ReadMeters", new { id = ViewBag.ID, extension = "htm" }

but this is outputting url localhost/Report/ReadMeters.htm?id=19

this does not work and i get the following error:

Server Error in ‘/’ Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /Report/ReadMeters.htm

Any Ideas how to fix this please? This is my first MVC project and so far have relied on the default routing mechanisms for other areas of the project but got stuck on this one.

Your help is appreciated, thanks

  • 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-05-25T19:15:04+00:00Added an answer on May 25, 2026 at 7:15 pm

    you could do something like this …

    routes.MapRoute("DoddleReportExtension",
       "{Controller}/{Action}/{Extension}/{id}/",
        new { controller = Report, action = Index,Extension=new ReportRouteConstraint(), id=UrlParameter.Optional });
    

    and then you can send the extension and the id to ActionResult..

    public ActionResult showItem(string Extension)
    {
        //view stuff here.
    }
    
    public ActionResult showItem(string Extension, int id)
    {
        //view stuff here
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm compiling an .as file using fcsh, which uses it mxmlc. I use the
Using android 2.3.3, I have a background Service which has a socket connection. There's
Using report builder 3.0, I have a report that queries a cube. How do
Using Rails 3.2.0.rc2 and ruby 1.9.3p0 In app/views/requests/_form.html.erb I have the following code for
I am working on a doodle in canvas, I am running into an issue
Using the C# Facebook SDK 5.0.3 everything works fine whit the client.Get(/me). But when
Using of mobile dialog authentication is working well for other mobile devices except on
Using MVC2 I have an AJAX form which is posting to a bound model.
Using Delphi 2010. I am looking for (possibly) a function or procedure which can
Note: I'm using Google Chrome Currently I have this test page http://www.evecakes.com/doodles/canvas_size_issue.htm It should

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.