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.


Shubham KumarRank #621 · 3.8K reputationPosted Jan 15, 2016, 7:35 PM EST
Manas MohapatraRank #182 · 13.2K reputationPosted Jan 15, 2016, 7:39 PM EST
Sreekanth ReddyRank #726 · 3.2K reputationPosted Jan 15, 2016, 11:39 PM EST
Sreekanth ReddyRank #726 · 3.2K reputationPosted Jan 15, 2016, 11:41 PM EST
Shubham KumarRank #621 · 3.8K reputationPosted Jan 16, 2016, 1:02 AM EST
Sreekanth ReddyRank #726 · 3.2K reputationPosted Jan 16, 2016, 1:34 AM EST
Shubham KumarRank #621 · 3.8K reputationPosted Jan 16, 2016, 1:52 AM EST