c#/asp.net - How to get htmlgeneric controls in another class?

Synoxis

New Member
I have a SharePoint 2010 asp.net site with the c# code in the back.The class is defined like this:\[code\]namespace PDF_Library.VisualWebPart1{ public partial class PDF_Library : UserControl { protected TextBox mybox = My_Box; } public class DOM { public TextBox mybox = My_Box; }}\[/code\]In the PDF_Library class I was able to access the html control, but I can't access it from the DOM class. I tried adding ': UserControl' but that didn't work...Is there a way I can access it from the DOM class?
 
Back
Top