I cannot work out how to get an integer value from a textbox from inside a datalist for a variable to insert into SQL.
Here is my code.
int qty = int.parse(dlProducts.Controls[0].FindControl("txtProductQty"));
and this variable will be put into an insert Query.
into a textbox inside a datalist id="dlProducts"
<asp:TextBox ID="txtProductQty" runat="server" Height="22px"
Width="15px"></asp:TextBox>