Sreekanth Reddy

Sreekanth Reddy

  • 353
  • 4.8k
  • 421.3k

Web Forms Controls accessing in another class

Jan 16 2016 12:06 AM
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)