I have 2 text boxes the default value for TextBox1 is "1" this is the amount to be ordered. In the other textbox, TextBox2 the value is the price (taken from the database).
If for example the site visitor changes the value in textbox1 to "3" then the price value in TextBox2 will be multiplied by 3 and displayed.
I'm not sure how best to accomplish this. I have tried "OnTextChanged" but to be honest I'm a bit lost. Code needs to be in C#
The page allows purchase of a single item but the visitor can choose the amount. I don't need anything as complex as a shopping cart.
Any help appreciated.
Enter Amount: <asp:TextBox ID="TextBox1" Font-Bold="true" Columns="3" runat="server" Visible="true">1</asp:TextBox>
Price: <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("P_ID") %>' />