Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Basic textbox1 (1000) 12%on basic textbox2 120


in this textbox1 if amt 781 greater means 780 amt want to display in textbox2 else 12% on basic (1000) 120 amt want to display in textbox2.

for that how to write code using csharp

please help me
Posted
Comments
Santhosh Kumar Jayaraman 25-Jul-12 4:25am    
You have already posted this in c-sharpcorner.Isnt it?? Didnt the solution work?
Sandeep Mewara 25-Jul-12 4:59am    
Can I know why you deleted the same question asked couple hours back and then reposted it?
calculating 12% ob basic[^]

seeking just for code without making nay effort is not good practice.

1 solution

You are asking too basic an implementation as a whole!

Try out, you may find it is not that difficult.
All you need is:
1. UI - two textbox, one button
2. code behind - button click event in which you check the text entered in textbox1, use if statement and find the value to be displayed in textbox2

Try!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900