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. Raising an event from User Control

Raising an event from User Control

Scheduled Pinned Locked Moved ASP.NET
cssdatabasequestion
3 Posts 3 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.
  • N Offline
    N Offline
    narayanagvs
    wrote on last edited by
    #1

    Hi, I am asked to do an user control which takes the input for the PageSize and PageNumber.The User control also has a button on clicking which would set the PageSize and Page Number of a Grid.Grid is not part of a user control. If a Page has a Grid control and my user control is registered in it. How should I be doing this?I need an approach.Do I need to raise an event from user control which will be captured by the page containg grid. So that I can do databinding in that by assigning the values of pageSize and Page Index from User Control. Any suggestions or links would be helpful. Thanks

    Today is a gift, that's why it is called the present.

    S N 2 Replies Last reply
    0
    • N narayanagvs

      Hi, I am asked to do an user control which takes the input for the PageSize and PageNumber.The User control also has a button on clicking which would set the PageSize and Page Number of a Grid.Grid is not part of a user control. If a Page has a Grid control and my user control is registered in it. How should I be doing this?I need an approach.Do I need to raise an event from user control which will be captured by the page containg grid. So that I can do databinding in that by assigning the values of pageSize and Page Index from User Control. Any suggestions or links would be helpful. Thanks

      Today is a gift, that's why it is called the present.

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      Check the URL might helpfull for you http://forums.asp.net/p/1092614/1643617.aspx#1643617[^]

      Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      1 Reply Last reply
      0
      • N narayanagvs

        Hi, I am asked to do an user control which takes the input for the PageSize and PageNumber.The User control also has a button on clicking which would set the PageSize and Page Number of a Grid.Grid is not part of a user control. If a Page has a Grid control and my user control is registered in it. How should I be doing this?I need an approach.Do I need to raise an event from user control which will be captured by the page containg grid. So that I can do databinding in that by assigning the values of pageSize and Page Index from User Control. Any suggestions or links would be helpful. Thanks

        Today is a gift, that's why it is called the present.

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

        You may need to use delegates. Raise an event from the user control when button is clicked. The page has to handle the event and do necessary bindings.

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | 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