My requirement is to pass only int value to a Action method in controller.
Also need to validate the textbox ....if someone enters text, it should show in the validationmessage as please enter only number
Hi Deepulu1984,
Through your description, I think there are many ways to achieve your needs.
Please see the following case, there are many solutions for you to choose, you could choose the appropriate one according to your own situation.
https://stackoverflow.com/questions/14727979/how-to-allow-only-numbers-in-textbox-in-mvc4-razor
Best regards,
Xudong Peng