Author: KashifB | Posted on: 5/13/2009 8:24:30 AM | Views : 304

I have three .aspx pages. In the Page_Load event of all of them I have very similar code which retrieves a message from the DB. There are likely to be more pages like this.

 Rather than have the same code in all three pages, how can I have the code in one place and use it on all three? Partial class?

 Please note that I have two Panel controls which are referenced in code but have the same IDs across all pages.
...

Go to the complete details ...