Last post Jul 17, 2008 02:18 PM by mm8
Jul 17, 2008 07:16 AM|mm8|LINK
I've made a UserControl for Paging and I want to be able to include it in a page and then set some selectparameters in a ObjectDataSource when clicking a button in the UserControl...How to declare eventhandlers for this..?
Jul 17, 2008 07:46 AM|bmains|LINK
Check this out: http://aspalliance.com/1461 This is one way you can get the two to work together...
Jul 17, 2008 11:57 AM|mm8|LINK
Don't get it...why so many classes?
Jul 17, 2008 01:34 PM|bmains|LINK
I was going for a more reusable approach; at the least, you can expose some things from the user control base class, but you can only use that class definition if you are using web application project; with the web site project template, you have to use
Just giving you another idea; more classes isn't bad... sometimes more classes provides a more reusable approach that's better, and sometimes its the other way around. It all depends on the situation. I don't completely grasp yours,so if you give me more
info, I can help further.
Jul 17, 2008 02:18 PM|mm8|LINK
I figured it out by using this in the userControl;
public delegate void OnPaging();
public event OnPaging lnkHandler;