reading from clientside control

  • Thread starter Thread starter Blue Man
  • Start date Start date
B

Blue Man

is it possible to get the value of a client side control like textbox or
textarea with a server side control ?
i tired hiden values but the problem is they don have usefull event handler
to catch data.
 
Yes

For client side control(ASPX)
<input type="text" value="" name="inp1"

In the codebehind or within server script tags(in c#)
string str = Request["inp1"].ToString()

For server side control(ASPX)
<asp:Textbox id="txt1" runat="server"></asp:Textbox

In the codebehind or within server script tags(in c#)
string str = txt1.Text

HTH
Suresh

----- Blue Man wrote: ----

is it possible to get the value of a client side control like textbox o
textarea with a server side control
i tired hiden values but the problem is they don have usefull event handle
to catch data
 
Back
Top