.net user control and page binding

pierz

New Member
I have a block of code that contains an updatepanel and gridview that I use repeatedly in 5 different .aspx files. Instead of trying to maintain all 5. I was hoping to create a user control that I could just include in each page. After starting to write it, I realized that it might not work. The issue is, I will need to bind database data to the updatepanel and gridview inside the usercontrol using Eval. But I don't think this is possible since the code will now be in a .ascx file.So I was wondering if there is anyway to solve this.Thanks!
 
Back
Top