I am using an alert box to alert some messages after some validation.
Now I want to make alert box position over the control where it had a validation
error.
Since that is a default dialog box, you cannot position that. However, you can design your own custom alert box and position that. Or, you can use 3rd party dialog boxes, jquery ui has a nice one: http://jqueryui.com/dialog/