7
Answers

Web Forms Controls accessing in another class

Srikanth Reddy

Srikanth Reddy

8y
345
1
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)