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. Close the window for on RadioButton's OnCheckedChanged()?

Close the window for on RadioButton's OnCheckedChanged()?

Scheduled Pinned Locked Moved ASP.NET
questionjavascripttutorial
4 Posts 2 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.
  • C Offline
    C Offline
    chand10
    wrote on last edited by
    #1

    Hi My application is like this... I have a LinkButton, OnClientClick() of LinkButton opens a seperate window containing two Radio Buttons.Now on selecting any of the RadioButton the window should automatically close. I tried RadioButton1.Attributes.Add("OnCheckedChanged","JavaScript:window.close()"); But it is not working. How can I make this possible. Suggest me an example.

    I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu

    N 1 Reply Last reply
    0
    • C chand10

      Hi My application is like this... I have a LinkButton, OnClientClick() of LinkButton opens a seperate window containing two Radio Buttons.Now on selecting any of the RadioButton the window should automatically close. I tried RadioButton1.Attributes.Add("OnCheckedChanged","JavaScript:window.close()"); But it is not working. How can I make this possible. Suggest me an example.

      I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      chand10 wrote:

      RadioButton1.Attributes.Add("OnCheckedChanged","JavaScript:window.close()")

      Try

      RadioButton1.Attributes.Add("OnClick","JavaScript:window.close();")

      are you using firefox ? I think window.close() is having problems with FF.


      My Website | Ask smart questions

      C 1 Reply Last reply
      0
      • N N a v a n e e t h

        chand10 wrote:

        RadioButton1.Attributes.Add("OnCheckedChanged","JavaScript:window.close()")

        Try

        RadioButton1.Attributes.Add("OnClick","JavaScript:window.close();")

        are you using firefox ? I think window.close() is having problems with FF.


        My Website | Ask smart questions

        C Offline
        C Offline
        chand10
        wrote on last edited by
        #3

        Gr8!!!!! Its working. Thnx But the click event is for Button know?!

        I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu

        N 1 Reply Last reply
        0
        • C chand10

          Gr8!!!!! Its working. Thnx But the click event is for Button know?!

          I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          chand10 wrote:

          But the click event is for Button know?!

          No it's there for almost all controls.


          My Website | Ask smart questions

          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