.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

NEED code for textchanged event

Posted By: parthiban     Posted Date: December 05, 2012    Points:5   Category :ASP.Net
GOT THREE TEXTBOX. UNITS | COST |TOTAL

I WANT 2 DISPLAY TOTAL ON TEXT CHANGED EVENT OF TEXTBOX..

/* decimal totalcost;

totalcost = (Convert.ToDecimal(textboxunit.Text)) * (Convert.ToDecimal(textboxCost.Text)); */

Responses
Author: Baimey Rajesh             
Posted Date: December 06, 2012     Points: 20   

Hi Parthiban,

In Webpage ::
<asp:TextBox OnTextChanged="textboxunit_TextChanged" />


In C# ::

protected void textboxunit_TextChanged(object sender, EventArgs e)
{
TextBox2.Text = (Convert.ToDecimal(textboxunit.Text)) * (Convert.ToDecimal(textboxCost.Text));
}


Thanks
Baimey



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend