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. Problem with calling Event Handler in MasterPage

Problem with calling Event Handler in MasterPage

Scheduled Pinned Locked Moved ASP.NET
helpquestioncsharpasp-nettutorial
5 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.
  • M Offline
    M Offline
    morteza57
    wrote on last edited by
    #1

    Hi, In a normal Asp.Net Page we can call a Event Handler with the __doPostBack Statement. in example : __doPostBack('Button1_Click','') but when i use Masterpage, that dose not work correctly. is any one help me How can i do it? Thank you

    I 1 Reply Last reply
    0
    • M morteza57

      Hi, In a normal Asp.Net Page we can call a Event Handler with the __doPostBack Statement. in example : __doPostBack('Button1_Click','') but when i use Masterpage, that dose not work correctly. is any one help me How can i do it? Thank you

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      Where U call a event handler of button? In master page code behind file or content Page Best Regard Pathan

      GOD HELP THOSE WHO HELP THEMSELVES

      M 1 Reply Last reply
      0
      • I Imran Khan Pathan

        Where U call a event handler of button? In master page code behind file or content Page Best Regard Pathan

        GOD HELP THOSE WHO HELP THEMSELVES

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

        In content Page I want call event handler of button (in Markup view by JavaScript)

        I 1 Reply Last reply
        0
        • M morteza57

          In content Page I want call event handler of button (in Markup view by JavaScript)

          I Offline
          I Offline
          Imran Khan Pathan
          wrote on last edited by
          #4

          It was not working becoz the id of button will be change on content page Make property of Button Id in master page and call that property In content page U waill get Id of That button and then can create event of button with Id Best Regard Pathan

          GOD HELP THOSE WHO HELP THEMSELVES

          M 1 Reply Last reply
          0
          • I Imran Khan Pathan

            It was not working becoz the id of button will be change on content page Make property of Button Id in master page and call that property In content page U waill get Id of That button and then can create event of button with Id Best Regard Pathan

            GOD HELP THOSE WHO HELP THEMSELVES

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

            Thank you Dear Pathan

            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