the dropdown value as 300
and the textbox value is 30
total is 330
my design is
BILLING DETAILS | |
Width="146px"> | |
vat/ | |
i need requiredno * price
BILLING DETAILS | |
Width="146px"> | |
vat/ | |
Know the answer? Post it. Somebody with the same question will find it here.
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 16, 2013, 10:18 PM EDT
You can do by using javascript
call this method on button click
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 16, 2013, 10:36 PM EDT
in aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
in .cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnAdd_Click(object sender, EventArgs e)
{
Label1.Text = "sum :" +( Convert.ToInt32(DropDownList1.SelectedValue) + Convert.ToInt32(TextBox1.Text));
}
}
selvi subramanianRank #2,007 · 723 reputationPosted Aug 16, 2013, 11:15 PM EDT
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 16, 2013, 11:16 PM EDT
selvi subramanianRank #2,007 · 723 reputationPosted Aug 16, 2013, 11:19 PM EDT
selvi subramanianRank #2,007 · 723 reputationPosted Aug 16, 2013, 11:20 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 16, 2013, 11:47 PM EDT
Regards,
Iftikar
selvi subramanianRank #2,007 · 723 reputationPosted Aug 17, 2013, 12:54 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 17, 2013, 3:16 AM EDT
Regards,
Iftikar
selvi subramanianRank #2,007 · 723 reputationPosted Aug 17, 2013, 10:30 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 17, 2013, 11:04 PM EDT
Regards,
Iftikar
selvi subramanianRank #2,007 · 723 reputationPosted Aug 17, 2013, 11:13 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts