Caluclation

protected void btnCalculate_Click(object sender, EventArgs e) 
        { 
            try 
            { 
                double price1, price2; 
                price1 = Convert.ToDouble(txtCostBenifits.Text.Trim()) / 10; 
                price2 = (price1 * 0.2); //(price1 / 20) * 100; 
  
                //Final_Prise1:=@If(Prise1>50000;50000;Prise1); 
                //Final_Prise2:=@If(Prise2<2000;2000;Prise2); 
  
                txtAwardPrize.Text = price1.ToString(); 
                txtAwrdPrizeImplmentor.Text = price2.ToString(); 
            } 
            catch (Exception ex) 
            { 
                Page.ClientScript.RegisterClientScriptBlock(typeof(SPAlert), "alert", "<script language=\"javascript\">alert('" + ex.Message + "')</script>"); 
  
            } 
        } 

Comments

Popular posts from this blog

SP People Picker Validation

Create multiple web parts in one SPFx Solution

JQgrid Auto Complete functionality for a textbox using Jquerry