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 script

popup script

Scheduled Pinned Locked Moved ASP.NET
toolshelp
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.
  • R Offline
    R Offline
    rajkumar 3
    wrote on last edited by
    #1

    Button3.Attributes.Add("Onclick", "OpenWindow();") i want to execute some statements in button click then depending on condition my popup window should open not like deafault button click.. can any one help me in this .. Regards Rajkumar.

    A C 2 Replies Last reply
    0
    • R rajkumar 3

      Button3.Attributes.Add("Onclick", "OpenWindow();") i want to execute some statements in button click then depending on condition my popup window should open not like deafault button click.. can any one help me in this .. Regards Rajkumar.

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      you can use RegisterStartupScript Block for that.

      Best Regards ----------------- Abhijit Jana "Success is Journey it's not a destination"

      R 1 Reply Last reply
      0
      • A Abhijit Jana

        you can use RegisterStartupScript Block for that.

        Best Regards ----------------- Abhijit Jana "Success is Journey it's not a destination"

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

        yah i got it abhijit ClientScript.RegisterStartupScript(GetType(Capture), "close", "OpenWindow();", True) thanks any way..

        1 Reply Last reply
        0
        • R rajkumar 3

          Button3.Attributes.Add("Onclick", "OpenWindow();") i want to execute some statements in button click then depending on condition my popup window should open not like deafault button click.. can any one help me in this .. Regards Rajkumar.

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

          I think it needs to be all lower case. Why not just add OnClientClick to the button in the aspx ?

          Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          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