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
ahmed elbarbary
636
1.6k
282.1k
commission rate display wrong when write commission textbox1
Dec 20 2017 2:13 AM
my problem is cannot able to write any number in commission textbox (textbox1) and display result in textbox2 that represent commision rate .
commision rate = (commission/amount ) * 100
I have 3 text boxes
textbox1 : represent Commission
Commission=(amount * rate)/100
textbox2 : represent CommissionRate
CommissionRate=(Commission/amount)*100
txtLgAmount represent amount
private
void
textBox1_TextChanged(object sender, EventArgs e)
{
if
(!string.IsNullOrEmpty(textBox1.Text) && !string.IsNullOrEmpty(txtLgAmount.Text))
{
textBox2.Text = ((Convert.ToDecimal(textBox1.Text) / Convert.ToDecimal(txtLgAmount.Text))*100).ToString();
}
else
{
textBox2.Text =
""
;
}
}
image problem attached
below
Reply
Answers (
1
)
Asp.net MVC: the underlying provider failed to open.
How to apply css to a button after on click in repeater