Author: rkshatri | Posted on: 6/30/2010 3:22:10 PM | Views : 1058

Hi,
I have a static method and need to get the Textbox text in it. But I get "An object reference is required for the non-static field, method, or property 'Members_ETC_Tab5.TextBox1' " when I use TextBox1.text in the static method so I modified my Method as below
[System.Web.Services.WebMethod] public static bool ConfirmMatchedDataCount() { Page page = HttpContext.Current.Handler as Page; TextBox txtBegin = (TextBox)page.FindControl("TextBox1"); }
but I see that txtBegin is null. How can this be fxed?
 
Thanks.
...

Go to the complete details ...