Test your control's run-time behavior and exercise its properties with the User Control Test Container.For more information, see How to: Test the Run-Time Behavior of a User Control.
In the controller defined the methods for binding Country and City dropdown lists. Now run the code and you will find that all the validations are working well as expected.
I hope you will enjoy the tips while programming with MVC Razor.
To put your control to use, you will need to host it on a form.
As with a standard composite control, an inherited composite control cannot stand alone and must be hosted in a form or other container.
For more information, see Customizing Development Settings in Visual Studio.