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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:23:31+00:00 2026-05-16T08:23:31+00:00

We began a project using WebForms, and developed a somewhat complex portal system to

  • 0

We began a project using WebForms, and developed a somewhat complex portal system to accommodate breadcrumbs, navigation, and so forth. We keep an extra navigation context ID parameter on the URL at all times, so that we can track the user’s breadcrumb history robustly even if they are using multiple tabs or using the navigation buttons on their browser. In order for this to work properly in WebForms, all non-postback links need to be generated by the portal’s utility methods. We get a number of benefits from using the portal’s utility methods, so it’s really not a burden. And since any actions that take place on a given page will use postbacks, the URL doesn’t change when these actions are performed.

Now we’re beginning to use MVC for some parts of our site, and the transition has so far been relatively smooth. I’d like to make sure our portal can be used properly without really getting in the way, though. So far, we are using some custom HtmlHelper extension methods to generate links between various pages (even though “pages” don’t really exist in MVC, certain actions have the effect of rendering the entire page). This allows us to keep the navigation context ID on the URL for page actions. In order to avoid losing this URL parameter, however, we are only using AJAX requests for any actions within the page. This prevents us from being able to respond to most action requests with a full View, or follow a Post-Redirect-Get pattern.

While I’m a big fan of AJAX, and we technically don’t plan to support browsers without javascript enabled, etc., I would nevertheless like to leave our options open. So I’d like to be able to make it so that any time a link or form gets rendered via the built-in HtmlHelper methods, I can have a hook into the URL construction, and append the context ID to the URL query parameters. Is there any (preferably easy) way to do this? Or do you see another solution to my problem that would be better?

  • 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-16T08:23:32+00:00Added an answer on May 16, 2026 at 8:23 am

    There is no way to get into the existing HTMLHelper’s code paths. Your going to have to roll your own. There is hope, you could probably get away with superficial facades that just pass through to the existing html helper.

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

Sidebar

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.