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 on successful validation

Alert on successful validation

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasehelpannouncement
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.
  • 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 A 2 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

      A button click with a server control can have two events, OnClientClick and OnClick. OnClientClick will call a javascript method, which needs to return true for OnClick to be called on the server. So, make your onClientClick show a message box and return true or false, based on what the user clicks.

      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.

        A Offline
        A Offline
        Anil Chauhan
        wrote on last edited by
        #3

        Hi Ramkithepower, Cud u please tell me where is the button located. with in the Datagrid or outside the datagrid on the form. Regards, _Anil

        jhgdgf

        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