Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem when coming back to previous page.

Problem when coming back to previous page.

Scheduled Pinned Locked Moved ASP.NET
helpcsharpjavascriptcssasp-net
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    astrovirgin
    wrote on last edited by
    #1

    Hi, So the problem is I have created an asp.net project.There is a page contains DELETE button which deletes Grid Data from the page. When I click on Delete button, it deletes the data and show a JavaScript alert message that the Data has been deleted. After that I access some other page and when I come back to the page using back button of Browser, It show the same "The Data has been deleted" alert again. I am not getting how to stop that alert message to show agsin abd agsin on the Page. So please help me. Thanks in Advance.

    C 1 Reply Last reply
    0
    • A astrovirgin

      Hi, So the problem is I have created an asp.net project.There is a page contains DELETE button which deletes Grid Data from the page. When I click on Delete button, it deletes the data and show a JavaScript alert message that the Data has been deleted. After that I access some other page and when I come back to the page using back button of Browser, It show the same "The Data has been deleted" alert again. I am not getting how to stop that alert message to show agsin abd agsin on the Page. So please help me. Thanks in Advance.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      The best way to do this is to do a Server.Transfer to the same page after deleting, so that going back goes back to a request for the page, not a postback that is doing a delete.

      Christian Graus Driven to the arms of OSX by Vista.

      A 1 Reply Last reply
      0
      • C Christian Graus

        The best way to do this is to do a Server.Transfer to the same page after deleting, so that going back goes back to a request for the page, not a postback that is doing a delete.

        Christian Graus Driven to the arms of OSX by Vista.

        A Offline
        A Offline
        astrovirgin
        wrote on last edited by
        #3

        I am not getting what you want to say. Where I use Server.Transfer??? Sorry.. But over the head answer...

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups