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