User-2134351927 posted
Hi Is there anyway to access the value of a form control from within a static WebMethod? For example allowing a user to select a value that is passed to a method which in-turn passes a paramter to a store procedure? This is set on the form by
the user:
[WebMethod]
public static string GetDataForEventChart()
{
string theValue = theControlUserSelectsFrom.SelectedItem.Value.ToString();
return DataForEventChart(theValue);
}
I need an object referance but am struggling to figure it out.
Thanks so much for any help!