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. Delegate Event

Delegate Event

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

    My reqirement is to capture the Master page event in The client page In the click of Mater page button i have to control differnt client pages. This click has different meaning at differnt pages In the click of Master page button. AT State page It Should display all the state details At city page It Should display all the city details how should i do? Thanks in Advance

    R 1 Reply Last reply
    0
    • K ksss_maheshece

      My reqirement is to capture the Master page event in The client page In the click of Mater page button i have to control differnt client pages. This click has different meaning at differnt pages In the click of Master page button. AT State page It Should display all the state details At city page It Should display all the city details how should i do? Thanks in Advance

      R Offline
      R Offline
      R Giskard Reventlov
      wrote on last edited by
      #2

      The question is a little unclear; however, if you have a buttons on the master page that are intended to open specific child pages I can't see what the problem is. Each button will have an event (which you need to hook up - open the page in design view and double-click on each button to create the event) that loads the specified page and then it is up to that page to carry out whatever tasks are required; e.g. State.aspx displays states and City.aspx displays cities. If that is nothing like what you are asking then please ignore! :-)

      "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me

      K 1 Reply Last reply
      0
      • R R Giskard Reventlov

        The question is a little unclear; however, if you have a buttons on the master page that are intended to open specific child pages I can't see what the problem is. Each button will have an event (which you need to hook up - open the page in design view and double-click on each button to create the event) that loads the specified page and then it is up to that page to carry out whatever tasks are required; e.g. State.aspx displays states and City.aspx displays cities. If that is nothing like what you are asking then please ignore! :-)

        "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me

        K Offline
        K Offline
        ksss_maheshece
        wrote on last edited by
        #3

        thanks for your promotional support. Now i got some thing and done it for the same requirment is that In master page i createed delegate and an event Public Delegate Sub A(ByVal S As String) Public Event C As A Public Sub Search_Click(ByVal r As String) RaiseEvent C(r) End Sub I've raised an event while at the button click of user control Protected Sub btnGenerate_Click(ByVal sender As Object, ByVal e As System.EventArgs) RaiseEvent C("txtToFind") End Sub In my client page i've handled the master page event with one method AddHandler Master.C, AddressOf Me.Click Public Sub Click(ByVal pSearch As String) 'code to execute End Sub but its not capturing the Click method.:confused:

        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