hiddenfield have to change on every onclick
<p>Am new to asp.net,c#.
Am having dynamic boxes(each companies),it will create at the run time.Now On each click of the box my hidden field should give the respected id.If am clicking that box I can get the company id from database,now if the company id is 5 my hidden field should get 5,if it is 7 my hidden field should give 7.Am using asp.net control hidden field(necessary to use in sql datasource).I can asp.net control hiddenfield values only in c#.
How can I change the hidden field values in c# with javascript for every click</p>

<p>How to achieve this using c# and javascript coding?please help me out</p>
