Do any one know how can I get the textbox value based on the name in controller?
Example:
<asp:TextBox runat="server" ID="stDate" Text='<%# Eval("StartDate")%>' Width="6em" />
When I read from the source code, it's show as below:
<input name="ctl00$cplh$GridView1$ctl10$stDate" type="text" id="stDate" style="width:6em;" />
How can I get the get this textbox value based on the name ctl00$cplh$GridView1$ctl10$stDate
in the controller?
NOTE: the reason I would like to do in this way is because I have more then 1 textbox are using the same ID (stDate)