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. General Programming
  3. C#
  4. Confirm message on successful validation

Confirm message on successful validation

Scheduled Pinned Locked Moved C#
csharpasp-netdatabasehelpannouncement
6 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.
  • R Offline
    R Offline
    Ramkithepower
    wrote on last edited by
    #1

    Hi , I am developing an application with a datagrid using which user can update the data in the datagrid row. Its all in ASP.Net c#. on click of a button i should do the following. Check if user has modified atleast one row. 1. If the user has not modified even one row, then i should display a messsage stating user to action atleast one row.--- I have done this check and works good. 2. If the user has changed atleast one row then i should display a alert asking for confirmation if they would like to proceed. If the user selects 'No' i should stop the execution. if he clicks Yes the execution should proceed. -- I need help on this .. I am not able to trigger it becuase the button is already clicked. Please help me sort the point 2.

    C M J 3 Replies Last reply
    0
    • R Ramkithepower

      Hi , I am developing an application with a datagrid using which user can update the data in the datagrid row. Its all in ASP.Net c#. on click of a button i should do the following. Check if user has modified atleast one row. 1. If the user has not modified even one row, then i should display a messsage stating user to action atleast one row.--- I have done this check and works good. 2. If the user has changed atleast one row then i should display a alert asking for confirmation if they would like to proceed. If the user selects 'No' i should stop the execution. if he clicks Yes the execution should proceed. -- I need help on this .. I am not able to trigger it becuase the button is already clicked. Please help me sort the point 2.

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

      WE have an ASP.NET forum

      Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

      1 Reply Last reply
      0
      • R Ramkithepower

        Hi , I am developing an application with a datagrid using which user can update the data in the datagrid row. Its all in ASP.Net c#. on click of a button i should do the following. Check if user has modified atleast one row. 1. If the user has not modified even one row, then i should display a messsage stating user to action atleast one row.--- I have done this check and works good. 2. If the user has changed atleast one row then i should display a alert asking for confirmation if they would like to proceed. If the user selects 'No' i should stop the execution. if he clicks Yes the execution should proceed. -- I need help on this .. I am not able to trigger it becuase the button is already clicked. Please help me sort the point 2.

        M Offline
        M Offline
        mohmeh83
        wrote on last edited by
        #3

        if the useer click no whit action must be stopped?

        modified on Tuesday, May 5, 2009 3:29 AM

        R 1 Reply Last reply
        0
        • M mohmeh83

          if the useer click no whit action must be stopped?

          modified on Tuesday, May 5, 2009 3:29 AM

          R Offline
          R Offline
          Ramkithepower
          wrote on last edited by
          #4

          On the click of yes the changes done by the user in datagrid is updated in databases. This should not happen if he clicks no.

          M 1 Reply Last reply
          0
          • R Ramkithepower

            On the click of yes the changes done by the user in datagrid is updated in databases. This should not happen if he clicks no.

            M Offline
            M Offline
            mohmeh83
            wrote on last edited by
            #5

            if(MessegeBOx.Show("Are you sure?",...,MessageBoxBottunYesNo) == DialogResult.YES) update(); else return;

            modified on Tuesday, May 5, 2009 3:28 AM

            1 Reply Last reply
            0
            • R Ramkithepower

              Hi , I am developing an application with a datagrid using which user can update the data in the datagrid row. Its all in ASP.Net c#. on click of a button i should do the following. Check if user has modified atleast one row. 1. If the user has not modified even one row, then i should display a messsage stating user to action atleast one row.--- I have done this check and works good. 2. If the user has changed atleast one row then i should display a alert asking for confirmation if they would like to proceed. If the user selects 'No' i should stop the execution. if he clicks Yes the execution should proceed. -- I need help on this .. I am not able to trigger it becuase the button is already clicked. Please help me sort the point 2.

              J Offline
              J Offline
              Jack Li
              wrote on last edited by
              #6

              You'll using right to limit the buttom, and user right from userlevel list table.

              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