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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:58:15+00:00 2026-06-14T09:58:15+00:00

If I have a button on my ASP.NET page which will take you to

  • 0

If I have a button on my ASP.NET page which will take you to another page but that page will do something and then will send user back using

 Uri uu= Request.UrlReferrer;
        if (uu!= null)
            Response.Redirect(uu.ToString());

Now Which page event can I use so that when other pages displays I can display a message box.

In short I am running my custom code in a “aspx” page where user is directed on button click, and then after custom code I am sending user back to old page, but it happens so quickly that user doesn’t realize that he went on another page, now I want to display a message box after redirect on same page user started from, what to do :S !

More Information

EDIT

Sorry guys but I can’t make changes to ASP page where button is at all
🙁

  • 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-14T09:58:16+00:00Added an answer on June 14, 2026 at 9:58 am

    I’m a bit unsure about how the Request.UrlReferrer gets set. I think it’s a browser implementation detail. So I wouldn’t trust on that.

    I would go for something like

    A.aspx -> Redirects to -> B.aspx
    
    B.aspx -> Redirects to -> B.aspx?message=1
    

    And check if message=1 is set.

    But if you want to use the Request.UrlReferrer it should be accessible on Page_Load

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

Sidebar

Related Questions

I have a transaction button on my asp.net page. If the user clicks on
I have an asp.net page. There is a button Edit on the bottom that
I have an ASP.NET button in my application, which I want to open another
I have an ASP.NET page which has an asp.net button control in it. When
I have a asp.net page in which I have a chart that I dragged
I have an ASP.NET MVC Page with a button called Start Live Meeting. When
I have a standard ASP.NET 2.0 web page with a Delete button on it.
I use ASP.NET and have a Button and a CustomValidator, which has to validate
I have a ASP.NET page which has a form on it. It also has
I have an ASP.net page which has fields for filtering a dataset. When I

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.