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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:17:12+00:00 2026-05-25T12:17:12+00:00

What are RouteData data type and RouteTable: public static RouteData GetRouteDataByUrl(string url) { return

  • 0

What are RouteData data type and RouteTable:

public static RouteData GetRouteDataByUrl(string url)
{
return RouteTable.Routes.GetRouteData(new RewritedHttpContextBase(url));
}

  • 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-25T12:17:13+00:00Added an answer on May 25, 2026 at 12:17 pm

    Here are the metadata for the public methods and properties of both classes. First is the RouteData class:

    public class RouteData
    {
        // Summary:
        //     Initializes a new instance of the System.Web.Routing.RouteData class.
        public RouteData();
    
        //
        // Summary:
        //     Initializes a new instance of the System.Web.Routing.RouteData class by using
        //     the specified route and route handler.
        //
        // Parameters:
        //   route:
        //     An object that defines the route.
        //
        //   routeHandler:
        //     An object that processes the request.
        public RouteData(RouteBase route, IRouteHandler routeHandler);
    
        // Summary:
        //     Gets a collection of custom values that are passed to the route handler but
        //     are not used when ASP.NET routing determines whether the route matches a
        //     request.
        //
        // Returns:
        //     An object that contains custom values.
        public RouteValueDictionary DataTokens { get; }
    
        //
        // Summary:
        //     Gets or sets the object that represents a route.
        //
        // Returns:
        //     An object that represents the route definition.
        public RouteBase Route { get; set; }
    
        //
        // Summary:
        //     Gets or sets the object that processes a requested route.
        //
        // Returns:
        //     An object that processes the route request.
        public IRouteHandler RouteHandler { get; set; }
    
        //
        // Summary:
        //     Gets a collection of URL parameter values and default values for the route.
        //
        // Returns:
        //     An object that contains values that are parsed from the URL and from default
        //     values.
        public RouteValueDictionary Values { get; }
    
        // Summary:
        //     Retrieves the value with the specified identifier.
        //
        // Parameters:
        //   valueName:
        //     The key of the value to retrieve.
        //
        // Returns:
        //     The element in the System.Web.Routing.RouteData.Values property whose key
        //     matches valueName.
        //
        // Exceptions:
        //   System.InvalidOperationException:
        //     A value does not exist for valueName.
        public string GetRequiredString(string valueName);
    }
    

    Second is the RoutTable class:

    // Summary:
    //     Stores the URL routes for an application.
    [TypeForwardedFrom("System.Web.Routing, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
    public class RouteTable
    {
        // Summary:
        //     Initializes a new instance of the System.Web.Routing.RouteTable class.
        [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
        public RouteTable();
    
        // Summary:
        //     Gets a collection of objects that derive from the System.Web.Routing.RouteBase
        //     class.
        //
        // Returns:
        //     An object that contains all the routes in the collection.
        public static RouteCollection Routes { get; }
    }
    

    Do you have a more specific question about these classes?

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

Sidebar

Related Questions

I've implemented url routing with the following rule: string virtualPath = ~/ + requestContext.RouteData.Values[page].ToString();
import java.util.*; import java.io.*; @SuppressWarnings(unused) public class search { public static String[] inputdata; public
Im loading an entity 'Member' from its id in route data. [ListItemsForMembershipType(true)] public ActionResult
// html <% using (Html.BeginForm(MyAction, MyController, new { id = ViewContext.RouteData.Values[id] }, FormMethod.Post, new
MVC encourages RESTful URL's, yet HTML forms by nature append the data in query
I have the following route data object newsRoute = new { Area = Admin,
This simple code: [HttpPost] public ActionResult Check(string chosen_username, string email) { var lang =
I have following Url: customer/login?ReturnUrl=home How can I get this string in my view?
I need to load a HTML wrapper dynamically depending on data that gets populated
I have implemented a custom route (inherit from RouteBase) to have dynamic routes based

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.