Hi all,
I need to access client side control from server side code. For an example
<
form id="form1" runat="server"><table>
<tr> <td>UserName:td> <td><input type="text" id="textBoxUserName" />td> <td><asp:Button ID="buttonShow" runat="server" Text="show" OnClick="buttonShow_Click" />td> tr> table>form>
I need to access the textBoxUsername in the server side button click event.
How to do that?
Thanks
R. Eswaran.
![]() |
0 |
![]() |
Make sure you provide a name for your input box:
<input type="text" id="textBoxUserName'" name="mytext" />
then in your code behind,
Request("mytext")
Please make sure to mark as asnwer if this solution works for you.
NAbeel
--*Please mark as answer if you find this post helpful*--
![]() |
0 |
![]() |