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. Using javascript confirmation box in gridview

Using javascript confirmation box in gridview

Scheduled Pinned Locked Moved ASP.NET
javascriptquestion
4 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.
  • S Offline
    S Offline
    sandeep kumar pundhir
    wrote on last edited by
    #1

    hi I have a gridview and a delete button inside it. I want to show a javascript confirmation dialogue box on the click of this button . How can achieve this.? waiting ur reply . thanx sandeep

    G A 2 Replies Last reply
    0
    • S sandeep kumar pundhir

      hi I have a gridview and a delete button inside it. I want to show a javascript confirmation dialogue box on the click of this button . How can achieve this.? waiting ur reply . thanx sandeep

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Please don't cross post. --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • S sandeep kumar pundhir

        hi I have a gridview and a delete button inside it. I want to show a javascript confirmation dialogue box on the click of this button . How can achieve this.? waiting ur reply . thanx sandeep

        A Offline
        A Offline
        Anish Gopi
        wrote on last edited by
        #3

        Hai Sandeep, _ctrlName_.Attributes.Add("onClick","JavaScript:return confirm('Are you sure');");

        G 1 Reply Last reply
        0
        • A Anish Gopi

          Hai Sandeep, _ctrlName_.Attributes.Add("onClick","JavaScript:return confirm('Are you sure');");

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          There is no protocol specifier in an event property. ctrlName.Attributes.Add("onClick","return confirm('Are you sure');"); --- b { font-weight: normal; }

          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