User944339287 posted
Hi guys, I'm using Javascript to increase TextBox Value (0 to 1) and it's working fine.
The following is the result when I inspect (Ctrl + Shift + I) TextBox Control from the browser. The value is changed accordingly (0 to 1) as well.
<input name="ctl00$body$txt_product_option0" value="1" id="body_txt_product_option0" type="number">
But it remains the initial value 0 in Code-Behind (txt.Text). Any idea?
If Me.Panel1.Controls.Count > 0 Then
For i As Integer = 0 To Me.Panel1.Controls.Count - 1
Dim txt As TextBox = Me.Panel1.FindControl("txt_product_option" & i)
If IsNothing(txt) = False Then
If CDbl(txt.Text) > 0 Then
// do something if txt.Text > 0 //
End If
End If
Next
End If