I have a gridview customcontrol, for that paging event has defined in seperate class library. Can i write an paging event in my aspx.cs where i am using the customcontrol instead of calling that event from seperate class file
A:
If you expose events from your custom control you can use them in your codebehind yes.
Already a bit older but it shows how to do it: Creating a Custom .NET Web Control With Events.
I also found these tutorials to be interesting: Developing Custom ASP.NET Server Controls.
XIII
2010-09-01 06:14:36
can you please elobarate
Bala
2010-09-01 06:24:16
@Bala: I added some extra links for you to check out.
XIII
2010-09-01 07:43:11
Thanks a lot for your solution
Bala
2010-09-01 08:27:18