Click here to Skip to main content
15,895,606 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi All,

I am using 3 text boxes for range selections. I want to show range value in a message box when user enters range in text box.

Suppose user enters 1)100 in 1st text box , I want to show "you are selected <100".

2)100 in 1st text box and 500 in 2nd text box I want to show "you are selected 101 - 500 "
3) 500 in 2nd text box and 1000 in 3rd text box I want to show "you are selected 501 - 1000 "
After entering a value in 3rd text box ,I want to show all ranges in message box.

How can I do this?

Regards,

SJ
Posted
Comments
shakil0304003 4-Feb-11 1:01am    
Use google 1st!!!

You can use textbox onchanged event with javascript. Please, see this link
Click
 
Share this answer
 
v2
Bad question!

Please read the help on System.Windows.Forms.TextBox, System.Windows.Forms.Button. Use int.Parse and/or int.TryParse to get integer from Text, object.ToString to do the opposite. It should be more than enough. Even this is too much help (silly me!). Do some elementary job!

If it did not help, post your failed code, but better not. Do you want to learn something or fool rather your teachers? You decide.

—SA
 
Share this answer
 
Comments
Sandeep Mewara 4-Feb-11 2:41am    
Oops! Looks like you missed the tag completely SA. :)

This is a ASP.NET question and needs Javascript solution to it.
Sergey Alexandrovich Kryukov 4-Feb-11 4:10am    
Oops! Not again!
Thank you.
--SA

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