7
Answers

Web Forms Controls accessing in another class

webform1 : page
{
 
   Page_Load
   {
              // Able to access controls like gridview1, label1,...etc
    }
 
}
 
AnotherClass
{
             // Not Able to access controls like gridview1, label1,...etc
 
How to access the aspx defined controls in "AnotherClass" which was in same page. 
Answers (7)