using System; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void lnkB_Click(object sender, EventArgs e) { lbl1.Visible = lblMes.Visible=lbl2.Visible = lbl3.Visible = lbl4.Visible = lbl5.Visible = lbl6.Visible = lbl7.Visible = lbl8.Visible =lbl9.Visible = txt1.Visible = txt2.Visible = txt3.Visible = txt4.Visible = txt5.Visible = txt6.Visible = txt7.Visible = lbl10.Visible=btnS.Visible=btnC.Visible=txt8.Visible=true; } protected void txt1_TextChanged(object sender, EventArgs e) { if ((!string.IsNullOrEmpty(txt1.Text)) && (!string.IsNullOrEmpty(txt2.Text)) && (!string.IsNullOrEmpty(txt3.Text)) && (!string.IsNullOrEmpty(txt4.Text)) && (!string.IsNullOrEmpty(txt5.Text))) { txt6.Text = (Convert.ToInt32(txt1.Text) + Convert.ToInt32(txt2.Text) + Convert.ToInt32(txt3.Text) + Convert.ToInt32(txt4.Text) + Convert.ToInt32(txt5.Text)).ToString(); } } protected void txt2_TextChanged(object sender, EventArgs e) { if ((!string.IsNullOrEmpty(txt1.Text)) && (!string.IsNullOrEmpty(txt2.Text)) && (!string.IsNullOrEmpty(txt3.Text)) && (!string.IsNullOrEmpty(txt4.Text)) && (!string.IsNullOrEmpty(txt5.Text))) { txt6.Text = (Convert.ToInt32(txt1.Text) + Convert.ToInt32(txt2.Text) + Convert.ToInt32(txt3.Text) + Convert.ToInt32(txt4.Text) + Convert.ToInt32(txt5.Text)).ToString(); } } protected void txt3_TextChanged(object sender, EventArgs e) { if ((!string.IsNullOrEmpty(txt1.Text)) && (!string.IsNullOrEmpty(txt2.Text)) && (!string.IsNullOrEmpty(txt3.Text)) && (!string.IsNullOrEmpty(txt4.Text)) && (!string.IsNullOrEmpty(txt5.Text))) { txt6.Text = (Convert.ToInt32(txt1.Text) + Convert.ToInt32(txt2.Text) + Convert.ToInt32(txt3.Text) + Convert.ToInt32(txt4.Text) + Convert.ToInt32(txt5.Text)).ToString(); } } protected void txt4_TextChanged(object sender, EventArgs e) { if ((!string.IsNullOrEmpty(txt1.Text)) && (!string.IsNullOrEmpty(txt2.Text)) && (!string.IsNullOrEmpty(txt3.Text)) && (!string.IsNullOrEmpty(txt4.Text)) && (!string.IsNullOrEmpty(txt5.Text))) { txt6.Text = (Convert.ToInt32(txt1.Text) + Convert.ToInt32(txt2.Text) + Convert.ToInt32(txt3.Text) + Convert.ToInt32(txt4.Text) + Convert.ToInt32(txt5.Text)).ToString(); } } protected void txt5_TextChanged(object sender, EventArgs e) { if ((!string.IsNullOrEmpty(txt1.Text)) && (!string.IsNullOrEmpty(txt2.Text)) && (!string.IsNullOrEmpty(txt3.Text)) && (!string.IsNullOrEmpty(txt4.Text)) && (!string.IsNullOrEmpty(txt5.Text))) { txt6.Text = (Convert.ToInt32(txt1.Text) + Convert.ToInt32(txt2.Text) + Convert.ToInt32(txt3.Text) + Convert.ToInt32(txt4.Text) + Convert.ToInt32(txt5.Text)).ToString(); } } protected void txt8_TextChanged1(object sender, EventArgs e) { } }
tbOrderQuantity
txt1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)