I have a web page that will dynamically show textboxes representing quantities of various items.
I am doing this in a repeater. So my repeater looks like this:
I want to write client side script that will look at tbQuant and tbMult to multiply them on the fly (without the round trip to the server) and then post the results in the Label. I have a code behind page, but I figure the client side has to go into a <script.../> block. Can I do this with VB? Or do I have to use Javascript. If so, can Javascript work with the label? How do I address it, as a Span? Can I make the label visible with Javascript? Thanks.
I am doing this in a repeater. So my repeater looks like this:
Code:
<asp:Repeater id="rptProcessing" runat="server">
<ItemTemplate>
<asp:TextBox id="tbQuant" Width="50px" runat="server"></asp:TextBox> <%# container.dataitem("UoM") %>
of
<%# container.dataitem("filmName") %>
<asp:TextBox id="tbMult" runat="server" Visible="False"><%# container.dataitem("Multiplier") %></asp:TextBox>
<asp:Label id="Label1" runat="server" Visible="False"></asp:Label>
<br />
</ItemTemplate>
</asp:Repeater>
I want to write client side script that will look at tbQuant and tbMult to multiply them on the fly (without the round trip to the server) and then post the results in the Label. I have a code behind page, but I figure the client side has to go into a <script.../> block. Can I do this with VB? Or do I have to use Javascript. If so, can Javascript work with the label? How do I address it, as a Span? Can I make the label visible with Javascript? Thanks.