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. Popup message in AddButton (Event Generation)

Popup message in AddButton (Event Generation)

Scheduled Pinned Locked Moved ASP.NET
helpquestion
5 Posts 4 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.
  • T Offline
    T Offline
    talk2prabir yahoo co in
    wrote on last edited by
    #1

    Hi Friendz, I am adding records from aspx page by clicking ADD button, I want that after adding one record, it should display a pop up menu having message if you want to add another record. How can I do this, help me plz.. Prabir

    S S _ 3 Replies Last reply
    0
    • T talk2prabir yahoo co in

      Hi Friendz, I am adding records from aspx page by clicking ADD button, I want that after adding one record, it should display a pop up menu having message if you want to add another record. How can I do this, help me plz.. Prabir

      S Offline
      S Offline
      sdaniel_cst
      wrote on last edited by
      #2

      You can do this by using javascript code in the aspx page Add Button add code: on click="return confirm('Do u want to add another record?');" Regards,

      sdaniel_cst

      1 Reply Last reply
      0
      • T talk2prabir yahoo co in

        Hi Friendz, I am adding records from aspx page by clicking ADD button, I want that after adding one record, it should display a pop up menu having message if you want to add another record. How can I do this, help me plz.. Prabir

        S Offline
        S Offline
        Stephan Pilz
        wrote on last edited by
        #3

        Hello Prabir, the Messagebox is easy. Add following code in your Button-Handler:

        If Not Me.IsStartupScriptRegistered("MsgBox") Then
            dim sTemp as String = ""
            sTemp = "" & vbCrLf
            sTemp += "alert ('Do you want add another record?);" & vbCrLf
            sTemp += "" & vbCrLf
            Me.RegisterStartupScript("MsgBox", sTemp)
        End If
        

        If the user should take a choice replace the alert-call through a confirm-call. If this returns true the OK-Button was pressed. Regards Stephan

                       \\\\\\|///
                     \\\\  - -  //
                      (  @ @  )
        

        +---------------oOOo-(_)-oOOo-----------------+
        | Stephan Pilz stephan.pilz@stephan-pilz.de |
        | www.stephan-pilz.de |
        | ICQ#: 127823481 |
        +-----------------------Oooo------------------+
        oooO ( )
        ( ) ) /
        \ ( (_/
        \_)

        1 Reply Last reply
        0
        • T talk2prabir yahoo co in

          Hi Friendz, I am adding records from aspx page by clicking ADD button, I want that after adding one record, it should display a pop up menu having message if you want to add another record. How can I do this, help me plz.. Prabir

          _ Offline
          _ Offline
          _AK_
          wrote on last edited by
          #4

          You can use javascript confirm message for this purpose. :)

          Best Regards, Apurva Kaushal

          T 1 Reply Last reply
          0
          • _ _AK_

            You can use javascript confirm message for this purpose. :)

            Best Regards, Apurva Kaushal

            T Offline
            T Offline
            talk2prabir yahoo co in
            wrote on last edited by
            #5

            Dear Sirs, Thanx for your replay,I am able to get the javascript which conforms If I want to add a record. But the problem is now, after adding I need to another pop up menu which sholud show if user want to add another record or not,basically I need to generate another event after clicking AddRecord button. Plz help me..

            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