wriiluxxlz
New Member
I have two controls, textbox and dropdown, I want to calculate the sum of those two fields on asp button click.This is what I haveropdown Value \[code\]<aspropDownList ID="DropDownList3" runat="server" CssClass="dropdown" Width="74px"> <asp:ListItem Text="1" Value="http://stackoverflow.com/questions/14469669/1" /> <asp:ListItem Text="4" Value="http://stackoverflow.com/questions/14469669/4" /> <asp:ListItem Text="5" Value="http://stackoverflow.com/questions/14469669/5" /> <asp:ListItem Text="9" Value="http://stackoverflow.com/questions/14469669/9" /> <asp:ListItem Text="10" Value="http://stackoverflow.com/questions/14469669/10" /> <asp:ListItem Text="11" Value="http://stackoverflow.com/questions/14469669/11" /> <asp:ListItem Text="12" Value="http://stackoverflow.com/questions/14469669/12" /> <asp:ListItem Text="13" Value="http://stackoverflow.com/questions/14469669/13" /></aspropDownList>\[/code\]TextBox Value \[code\]<asp:TextBox ID="TextBox9" runat="server" CssClass="input-mini" /><br /><asp:Button ID="Button3" runat="server" Text="Calculate Sum" CssClass="btn btn-minibtn-info" />Textbox Result <asp:TextBox ID="TextBox10" runat="server" CssClass="input-mini" />\[/code\]I want on button click to calculate the sum of the dropdown + textbox9 and then put the value in TextBox10.Any idea how can I achieve that?