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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Save changes prompt

Save changes prompt

Scheduled Pinned Locked Moved ASP.NET
questioncsharpjavascriptasp-netsysadmin
2 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.
  • N Offline
    N Offline
    nmhuy
    wrote on last edited by
    #1

    Hi everbody, I am developing an ASP.NET application that has many pages. User can move from one to another page by clicking on the navigation bar on the left side of the screen. There is a page where users enter their information. While entering information, if they move to another page, I want the application to display a save changes prompt. Should I use the client side code (e.g JavaScript) or server side code (I see yahoo mail open a new window acts as a prompt)? What is the best way to due with this problem? I have few experiences in developing web-form application. Please advise, thanks. Lan hue sau ai lan hue heo Lan hue sau doi trong heo ngoai tuoi -- modified at 4:16 Sunday 11th September, 2005

    D 1 Reply Last reply
    0
    • N nmhuy

      Hi everbody, I am developing an ASP.NET application that has many pages. User can move from one to another page by clicking on the navigation bar on the left side of the screen. There is a page where users enter their information. While entering information, if they move to another page, I want the application to display a save changes prompt. Should I use the client side code (e.g JavaScript) or server side code (I see yahoo mail open a new window acts as a prompt)? What is the best way to due with this problem? I have few experiences in developing web-form application. Please advise, thanks. Lan hue sau ai lan hue heo Lan hue sau doi trong heo ngoai tuoi -- modified at 4:16 Sunday 11th September, 2005

      D Offline
      D Offline
      Dario Solera
      wrote on last edited by
      #2

      In my opinion, to keep it simple you should use some client side code to NOTIFY to the user that it hasn't saved the data, so to force it to click on some 'Save' button; write the instructions somewhere in the page, so the user knows what he's doing. If you're smarter, you can use client side scripts to save the data, but this will fail when the browser doesn't support javascript (or it is disabled: Exploer 6 SP1 usually prevents javascript execution). This tchnique is called AJAX: there are some articles here in Code Project, but it is a little complicated.


      [ITA] Tozzi ha ragione: Gaia si sta liberando di noi. [ENG] Tozzi is right: Gaia is getting rid of us.

      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