views:

27

answers:

1

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
can you please elobarate
Bala
@Bala: I added some extra links for you to check out.
XIII
Thanks a lot for your solution
Bala