Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Dear Friends,


I have one textbox like txtMobile with two validation controls like RequiredFiledValidator & RegularExpression, now my problem is whenever enter wrong mobile number the error message shows at middle of the column, i don't want to display that place i need in place of RequiredFieldValidator error message.


Please any one help me.

Thanks in advance.
Posted
Comments
Bhushan Mehetre 7-Aug-14 2:20am    
Is your text box in table ?
If it is then, you should check that u have not applied align center.
Member 10021658 7-Aug-14 2:33am    
Thank your reply.

Its not align problem. Suppose the requireFieldValidator error message width as 100 characters. Now the regularexpression error message shows after 100characters. Now i need from starting point only not after 100characters.

Thanks in advance.

Make the display as dynamic for both Regular expression and required field validators.
 
Share this answer
 
Comments
Member 10021658 7-Aug-14 3:04am    
some times its working but some times not working. I don't no what is the reason. But when ever placed as label its not working.
Strikerzz Arut 7-Aug-14 3:06am    
Could u paste ur codes here?
You are Very Welcome...


Just Add
CSS
Display="Dynamic"
property to both controls.

Click on "Accept Solution" if you found working...
 
Share this answer
 
v2

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