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. Check Bok and Button on click event

Check Bok and Button on click event

Scheduled Pinned Locked Moved ASP.NET
javascriptquestion
11 Posts 5 Posters 1 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.
  • M Offline
    M Offline
    mpavas
    wrote on last edited by
    #1

    Hello, I have a check box. I want to add a onclick event on the button if the check box is checked. OnClick will call a javascript method.. Please suggest how can I achieve this... I do not want to use a javascript.. Regards, Pavas

    Regards, Pavas

    M A E 5 Replies Last reply
    0
    • M mpavas

      Hello, I have a check box. I want to add a onclick event on the button if the check box is checked. OnClick will call a javascript method.. Please suggest how can I achieve this... I do not want to use a javascript.. Regards, Pavas

      Regards, Pavas

      M Offline
      M Offline
      Mohamad Kaifi
      wrote on last edited by
      #2

      cant u disable or enable that button?

      M 1 Reply Last reply
      0
      • M Mohamad Kaifi

        cant u disable or enable that button?

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

        If I disable the button then also I need to have a client side function... It is like a agreement "I agree to the terms and condition"...I want to perform this with out post back and not using javascript.

        Regards, Pavas

        M 1 Reply Last reply
        0
        • M mpavas

          If I disable the button then also I need to have a client side function... It is like a agreement "I agree to the terms and condition"...I want to perform this with out post back and not using javascript.

          Regards, Pavas

          M Offline
          M Offline
          Mohamad Kaifi
          wrote on last edited by
          #4

          could i now,why u dont want to use javascript..and i dont think there is any other way..u will have to use any client side script language..

          M 1 Reply Last reply
          0
          • M Mohamad Kaifi

            could i now,why u dont want to use javascript..and i dont think there is any other way..u will have to use any client side script language..

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

            Thats the way the project is made up of no javascript so I was trying to avoid it...

            Regards, Pavas

            1 Reply Last reply
            0
            • M mpavas

              Hello, I have a check box. I want to add a onclick event on the button if the check box is checked. OnClick will call a javascript method.. Please suggest how can I achieve this... I do not want to use a javascript.. Regards, Pavas

              Regards, Pavas

              A Offline
              A Offline
              Ashfield
              wrote on last edited by
              #6

              mpavas wrote:

              OnClick will call a javascript method

              Kind of contradicts

              mpavas wrote:

              I do not want to use a javascript

              Unless you want to do a postback then you have to use a client side script, Javascript is thye defacto standard.

              Bob Ashfield Consultants Ltd

              1 Reply Last reply
              0
              • M mpavas

                Hello, I have a check box. I want to add a onclick event on the button if the check box is checked. OnClick will call a javascript method.. Please suggest how can I achieve this... I do not want to use a javascript.. Regards, Pavas

                Regards, Pavas

                E Offline
                E Offline
                eyeseetee
                wrote on last edited by
                #7

                Postback - server side code - asp.net without postback - client side code - javascript simple you either use asp.net to do postback or jaavscript to do a clinet side command you cant not postback and then not use jaavscript

                We are not a Code Charity

                1 Reply Last reply
                0
                • M mpavas

                  Hello, I have a check box. I want to add a onclick event on the button if the check box is checked. OnClick will call a javascript method.. Please suggest how can I achieve this... I do not want to use a javascript.. Regards, Pavas

                  Regards, Pavas

                  M Offline
                  M Offline
                  Mohamad Kaifi
                  wrote on last edited by
                  #8

                  but u r calling a javascript function onclick of button..what it so..

                  1 Reply Last reply
                  0
                  • M mpavas

                    Hello, I have a check box. I want to add a onclick event on the button if the check box is checked. OnClick will call a javascript method.. Please suggest how can I achieve this... I do not want to use a javascript.. Regards, Pavas

                    Regards, Pavas

                    M Offline
                    M Offline
                    Mohamad Kaifi
                    wrote on last edited by
                    #9

                    i think i can answer ur question but plz explain..what u actually want..

                    K 1 Reply Last reply
                    0
                    • M Mohamad Kaifi

                      i think i can answer ur question but plz explain..what u actually want..

                      K Offline
                      K Offline
                      Krazy Programmer
                      wrote on last edited by
                      #10

                      how about using a ajax update pannel

                      If You win You need not Explain............ But If You Loose You Should not be there to Explain......

                      M 1 Reply Last reply
                      0
                      • K Krazy Programmer

                        how about using a ajax update pannel

                        If You win You need not Explain............ But If You Loose You Should not be there to Explain......

                        M Offline
                        M Offline
                        mpavas
                        wrote on last edited by
                        #11

                        I also thought of using Ajax, But I need to install some libraries for that site is already live and for such small change I need to get some stuff get installed... I think I need to settle at Javascript...

                        Regards, Pavas

                        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