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:
ESD
Member
11 Points
42 Posts
Help with [WebMethod]
Jan 31, 2013 07:19 PM|LINK
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!
MetalAsp.Net
All-Star
112051 Points
18235 Posts
Moderator
Re: Help with [WebMethod]
Jan 31, 2013 07:40 PM|LINK