HI,
I have a label inside gridview.I want to get the label value inside the gridview in static method in code behind.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mangesh GRank #294 · 8.6K reputationPosted Jan 12, 2017, 12:40 AM EST
if (HttpContext.Current != null) { Page page = (Page)HttpContext.Current.Handler; TextBox TextBox1 = (TextBox)page.FindControl("TextBox1"); TextBox TextBox2 = (TextBox)page.FindControl("TextBox2"); }Vasanth JackRank #5,346 · 302 reputationPosted Jan 12, 2017, 12:52 AM EST
Mangesh GRank #294 · 8.6K reputationPosted Jan 12, 2017, 1:21 AM EST
Vasanth JackRank #5,346 · 302 reputationPosted Jan 12, 2017, 2:00 AM EST
Mangesh GRank #294 · 8.6K reputationPosted Jan 12, 2017, 7:53 PM EST
Cassie ModRank #3,821 · 387 reputationPosted Jan 17, 2017, 4:31 AM EST