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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:31:38+00:00 2026-05-27T10:31:38+00:00

Currently converting an old asp.net web forms page into a asp.net mvc version, and

  • 0

Currently converting an old asp.net web forms page into a asp.net mvc version, and a little stuck on something that isn’t a major deal, but would be a nice to have.

When the user logs in, they are taken to a messages page at /Alerts. They can close individual messages by clicking the x’s, and then if they close all the message they are moved onto another page automatically.

The original site did postbacks, so the URL stayed the same. In my new version, I planned to make the x button a link, that went to /Alerts/Confirm/xx where xx is the id. The problem is, after processing, the address bar stays on that url, whereas I’d like to leave it on /Alerts

The four solutions appear to be either:

1) using AJAX to do the processing;

2) a redirect back to /Alerts after processing;

3) replacing all the X links with a submit button, and using javascript to pass a different ID depending on which message is being acknowledged, so that I can change the Confirm method to an HttpPost-accepting Index method?

4) URL Rewrites? (not sure about this, just thought of as I wrote this)

Or am I missing something obvious that would do what I’m trying to achieve?

  • 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-27T10:31:39+00:00Added an answer on May 27, 2026 at 10:31 am

    I agree with #1 and use Jquery to do it.

    Or you could show/hide those messages using Jquery .show() .hide(). So, they would always be there, just hidden. When they hit refresh they would show again.

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

Sidebar

Related Questions

I am currently converting a very old, but working classic ASP site to ASP.Net.
We are currently converting our old base VB.Net to C #. Converting the bulk
I am currently in the process of converting old Web 1.0 code to meet
I'm currently converting our company database application from VB to ASP.NET. This is pretty
I'm working on converting an old C program (currently run on UNIX) into our
I'm currently in the process of converting an old bash script of mine into
I am converting an old dataset into a newly structured database. Currently they have
I am converting a web application from asp.net to MVC3 and am trying to
I am currently converting a ASP.NET C# application to PHP. The service uses DateTime
I'm currently busy converting my code to ARC and ran into a little bit

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.