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. alert notification

alert notification

Scheduled Pinned Locked Moved ASP.NET
tutorial
3 Posts 3 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.
  • B Offline
    B Offline
    bhattiprolu
    wrote on last edited by
    #1

    Hi all, here i am developing one website, in one page i have one application form if user fills the hal of the form and try to go to the next page then iwant to prompt a message saying "r u sure u want to leave the page" how to achiev this. Actually i have done the same thing for cancel button in the same page. if user trying to go to next page with out filling the page then how to achieve this. Thanks in advance

    P R 2 Replies Last reply
    0
    • B bhattiprolu

      Hi all, here i am developing one website, in one page i have one application form if user fills the hal of the form and try to go to the next page then iwant to prompt a message saying "r u sure u want to leave the page" how to achiev this. Actually i have done the same thing for cancel button in the same page. if user trying to go to next page with out filling the page then how to achieve this. Thanks in advance

      P Offline
      P Offline
      Pankaj Garg
      wrote on last edited by
      #2

      Say u have a button , that propagates u from one page to another, on the form load add the attributes for the onclick function, and write the function in the java scrpt , which will confirm from u , as u have already done before:)

      If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!

      1 Reply Last reply
      0
      • B bhattiprolu

        Hi all, here i am developing one website, in one page i have one application form if user fills the hal of the form and try to go to the next page then iwant to prompt a message saying "r u sure u want to leave the page" how to achiev this. Actually i have done the same thing for cancel button in the same page. if user trying to go to next page with out filling the page then how to achieve this. Thanks in advance

        R Offline
        R Offline
        Rajesh_K_Sharma
        wrote on last edited by
        #3

        Hi Use window.onbeforeunload in java script var flag =0; var needToConfirm = true; window.onbeforeunload = confirmExit; function confirmExit() { if (needToConfirm) { // check to see if any changes to the data entry fields have been made var elem = document.getElementById('<%= txtName.ClientID %>'); if(flag == 0 ) { if(elem !=null) { return ("are you want to leave?"); } } } }

        rajesh

        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