TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
swtlbee
NA
28
0
easy! need to calculate one text box when the user enters data into another text box.
May 30 2009 5:31 PM
I have two text boxes and a C# method/function that will calculate the data of one text box when another is populated:
protected void calcMonthlyIncome()
{
appl_annualIncome = Convert.ToInt32;
appl_monthlyIncome.Text = appl_annualIncome/12;
}
What I need to know is in my text box how do I call the method/function once the user keys off or tabs off the text box(appl_annualIncome) he entered data into and set focus on the next textbox(appl_monthlyIncome) that will hold the calculated results.
<asp:TextBox ID="appl_annualIncome" runat="server" Width="140px"></asp:TextBox>
<asp:TextBox ID="appl_monthlyIncome" ReadOnly="true" runat="server" Width="140px" ></asp:TextBox>
Am new to the .net world - would appreciate any guidance. Thank you
Reply
Answers (
3
)
How to get the type of an exception
asp.net Upload control on submit