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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Please explain

Please explain

Scheduled Pinned Locked Moved ASP.NET
helpquestion
9 Posts 4 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
    ME_Learner
    wrote on last edited by
    #1

    Hi I have a peculiar problem here and I can't by my life figure out what the solution is. Note that the following code is not dynamically created, but just immediately in my aspx file. Submit This works just fine as long as I don't have the onclick attribute there, i.e. the OnServerClick handler is fired as it should. But when I use the onclick attribute it is not, no matter whether I confirm or decline the confirmation dialog box. Even if I do like following for is never submitted Submit What am I doing wrong? Thanks

    B S C 3 Replies Last reply
    0
    • M ME_Learner

      Hi I have a peculiar problem here and I can't by my life figure out what the solution is. Note that the following code is not dynamically created, but just immediately in my aspx file. Submit This works just fine as long as I don't have the onclick attribute there, i.e. the OnServerClick handler is fired as it should. But when I use the onclick attribute it is not, no matter whether I confirm or decline the confirmation dialog box. Even if I do like following for is never submitted Submit What am I doing wrong? Thanks

      B Offline
      B Offline
      Blikkies
      wrote on last edited by
      #2

      Im not realy sure but i think you can only have one event per control.

      C 1 Reply Last reply
      0
      • M ME_Learner

        Hi I have a peculiar problem here and I can't by my life figure out what the solution is. Note that the following code is not dynamically created, but just immediately in my aspx file. Submit This works just fine as long as I don't have the onclick attribute there, i.e. the OnServerClick handler is fired as it should. But when I use the onclick attribute it is not, no matter whether I confirm or decline the confirmation dialog box. Even if I do like following for is never submitted Submit What am I doing wrong? Thanks

        S Offline
        S Offline
        sashidhar
        wrote on last edited by
        #3

        Hi Why Dont U use Button Extender Control in ajax extender its simple and easy refer the below link http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ConfirmButton/ConfirmButton.aspx[^] If this is not ur answer sry :omg:

        C 1 Reply Last reply
        0
        • M ME_Learner

          Hi I have a peculiar problem here and I can't by my life figure out what the solution is. Note that the following code is not dynamically created, but just immediately in my aspx file. Submit This works just fine as long as I don't have the onclick attribute there, i.e. the OnServerClick handler is fired as it should. But when I use the onclick attribute it is not, no matter whether I confirm or decline the confirmation dialog box. Even if I do like following for is never submitted Submit What am I doing wrong? Thanks

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

          The answers you are getting are wrong. Server events are a mirage. They get replaced with client side events. You need to write an OnClientClick event if you want to have javascript run in your code. ASP.NET is going to replace anything else you write, with an onclick, which is the proper HTML that needs to be written for all the browsers on earth, so if you write it, you're fighting ASP,NET

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          1 Reply Last reply
          0
          • S sashidhar

            Hi Why Dont U use Button Extender Control in ajax extender its simple and easy refer the below link http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ConfirmButton/ConfirmButton.aspx[^] If this is not ur answer sry :omg:

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

            sashidhar wrote:

            If this is not ur answer sry

            No, it's not.

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            1 Reply Last reply
            0
            • B Blikkies

              Im not realy sure but i think you can only have one event per control.

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

              No, you are wrong. You can have an OnClick and an OnClientClick.

              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

              B 1 Reply Last reply
              0
              • C Christian Graus

                No, you are wrong. You can have an OnClick and an OnClientClick.

                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                B Offline
                B Offline
                Blikkies
                wrote on last edited by
                #7

                Thats why i say im not sure.

                C 1 Reply Last reply
                0
                • B Blikkies

                  Thats why i say im not sure.

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

                  Why answer to tell someone you don't know the answer ?

                  Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                  B 1 Reply Last reply
                  0
                  • C Christian Graus

                    Why answer to tell someone you don't know the answer ?

                    Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                    B Offline
                    B Offline
                    Blikkies
                    wrote on last edited by
                    #9

                    please shutup

                    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