Asp.net & Sql server fundas with Rajat Jaiswal

December 10, 2012

How to remove unwanted space from require field validator ?

Filed under: Asp.net — indiandotnet @ 3:07 pm
Tags: , , ,

Dear friends,
It may be possible that you know it but here I am going to share one simple tip to remove unwanted space occupied by required field validator control.
Just consider below login screen. On this field we have kept require field validator control.

 

withoutDynamic
The require field is just below the text box and it took unnecessary space.

validation
To resolve this issue you just need to change a simple property which is Display=”Dynamic” of require field validator.

Once you have changed the property to display dynamic the unwanted space automatically removed and it will consume only when validation failed.
The new screen will look like as below

After_dynamic_Use

So use display “Dynamic” property in required field validator.

Thanks & Best Regards,
Rajat Jaiswal

About these ads

1 Comment »

  1. Thanks

    Comment by atul kumar saxena — December 21, 2012 @ 6:05 am | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 52 other followers

%d bloggers like this: