Click here to Skip to main content
14,826,846 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all......
i had one dynamic table which contains several textboxes i used one input type button. here i need to write code for onclick event of html button control but its a client side how code behind code we can bind to the button and assign text box values to a string on click event can any one help me please

thanks in advance
Posted
Updated 17-Dec-10 23:26pm
v2

1 solution

Your question is quite confusing. What it sounds is you want to know how you can assign textbox values on client side.

Firstly, when you are creating this table dynamically on server side then all the controls too would be server side and you should be able to attach an onclick handler to it that can be used on server side.

In case, you have client side control then you will be left with client side event. In this case, if you really need to talk to server then use XMLHttpRequest to talk. If you just need to fill in the value of textbox then use Javascript, access the textbox and fill in the value. On postback or so, the textbox should show you the value on server side.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900