PC Review


Reply
Thread Tools Rate Thread

ASP.NET Validators

 
 
shapper
Guest
Posts: n/a
 
      1st Jun 2007
Hello,

Is there any way to make ASP.NET validators to display as block?
I tried everything I could think off with skins, css, etc.

I really don't know what else to try.
Shouldn't this be easy?
The objective is "only" to display the validators message in a single
line.

Thanks,
Miguel

 
Reply With Quote
 
 
 
 
Hans Kesting
Guest
Posts: n/a
 
      1st Jun 2007
> Hello,
>
> Is there any way to make ASP.NET validators to display as block? I
> tried everything I could think off with skins, css, etc.
>
> I really don't know what else to try.
> Shouldn't this be easy?
> The objective is "only" to display the validators message in a single
> line.
> Thanks,
> Miguel


I don't know if you can get it into a single line, but have you tried
the ValidationSummary?

Also: you don't *have* to place the validator controls next to the control
they are validating. Those validators could be anywhere on the page.
And if you set Display to Dynamic, you won't notice them if everything is ok.

Hans Kesting


 
Reply With Quote
 
shapper
Guest
Posts: n/a
 
      1st Jun 2007
On Jun 1, 2:11 pm, Hans Kesting <news.2.han...@spamgourmet.com> wrote:
> > Hello,

>
> > Is there any way to make ASP.NET validators to display as block? I
> > tried everything I could think off with skins, css, etc.

>
> > I really don't know what else to try.
> > Shouldn't this be easy?
> > The objective is "only" to display the validators message in a single
> > line.
> > Thanks,
> > Miguel

>
> I don't know if you can get it into a single line, but have you tried
> the ValidationSummary?
>
> Also: you don't *have* to place the validator controls next to the control
> they are validating. Those validators could be anywhere on the page.
> And if you set Display to Dynamic, you won't notice them if everything is ok.
>
> Hans Kesting


Yes I know that.
I have it set to dynamic and I want them to show under each textbox,
dropdownlist, etc in my form.
This is why i need them to display: block.

This would be something really useful. I can't understand why the
control does not have an option to display block instead of display
inline.
Such a simple feature ... I think.

Miguel

 
Reply With Quote
 
bruce barker
Guest
Posts: n/a
 
      1st Jun 2007
they render as a span, but allow you to specify the ccs class name.
thats all you need.

<style>
..blocknowrap {display:block;white-space:nowrap;}
</style>


-- bruce (sqlwork.com)

shapper wrote:
> On Jun 1, 2:11 pm, Hans Kesting <news.2.han...@spamgourmet.com> wrote:
>>> Hello,
>>> Is there any way to make ASP.NET validators to display as block? I
>>> tried everything I could think off with skins, css, etc.
>>> I really don't know what else to try.
>>> Shouldn't this be easy?
>>> The objective is "only" to display the validators message in a single
>>> line.
>>> Thanks,
>>> Miguel

>> I don't know if you can get it into a single line, but have you tried
>> the ValidationSummary?
>>
>> Also: you don't *have* to place the validator controls next to the control
>> they are validating. Those validators could be anywhere on the page.
>> And if you set Display to Dynamic, you won't notice them if everything is ok.
>>
>> Hans Kesting

>
> Yes I know that.
> I have it set to dynamic and I want them to show under each textbox,
> dropdownlist, etc in my form.
> This is why i need them to display: block.
>
> This would be something really useful. I can't understand why the
> control does not have an option to display block instead of display
> inline.
> Such a simple feature ... I think.
>
> Miguel
>

 
Reply With Quote
 
shapper
Guest
Posts: n/a
 
      1st Jun 2007
On Jun 1, 4:41 pm, bruce barker <nos...@nospam.com> wrote:
> they render as a span, but allow you to specify the ccs class name.
> thats all you need.
>
> <style>
> .blocknowrap {display:block;white-space:nowrap;}
> </style>
>
> -- bruce (sqlwork.com)
>
> shapper wrote:
> > On Jun 1, 2:11 pm, Hans Kesting <news.2.han...@spamgourmet.com> wrote:
> >>> Hello,
> >>> Is there any way to make ASP.NET validators to display as block? I
> >>> tried everything I could think off with skins, css, etc.
> >>> I really don't know what else to try.
> >>> Shouldn't this be easy?
> >>> The objective is "only" to display the validators message in a single
> >>> line.
> >>> Thanks,
> >>> Miguel
> >> I don't know if you can get it into a single line, but have you tried
> >> the ValidationSummary?

>
> >> Also: you don't *have* to place the validator controls next to the control
> >> they are validating. Those validators could be anywhere on the page.
> >> And if you set Display to Dynamic, you won't notice them if everything is ok.

>
> >> Hans Kesting

>
> > Yes I know that.
> > I have it set to dynamic and I want them to show under each textbox,
> > dropdownlist, etc in my form.
> > This is why i need them to display: block.

>
> > This would be something really useful. I can't understand why the
> > control does not have an option to display block instead of display
> > inline.
> > Such a simple feature ... I think.

>
> > Miguel


Yes, I do know that.
But try to apply a CssClass to it with display:block.
It does not work. The Display: Inline generated by the JavaScript
overrides it.
I tried many other approaches and I always got the same problem.

The only way I was able to make this work was to make:
rvf.ErrorMessage = "<br />My Error Message"

This is really annoying ...

Miguel

 
Reply With Quote
 
shapper
Guest
Posts: n/a
 
      1st Jun 2007
On Jun 1, 4:41 pm, bruce barker <nos...@nospam.com> wrote:
> they render as a span, but allow you to specify the ccs class name.
> thats all you need.
>
> <style>
> .blocknowrap {display:block;white-space:nowrap;}
> </style>
>
> -- bruce (sqlwork.com)
>
> shapper wrote:
> > On Jun 1, 2:11 pm, Hans Kesting <news.2.han...@spamgourmet.com> wrote:
> >>> Hello,
> >>> Is there any way to make ASP.NET validators to display as block? I
> >>> tried everything I could think off with skins, css, etc.
> >>> I really don't know what else to try.
> >>> Shouldn't this be easy?
> >>> The objective is "only" to display the validators message in a single
> >>> line.
> >>> Thanks,
> >>> Miguel
> >> I don't know if you can get it into a single line, but have you tried
> >> the ValidationSummary?

>
> >> Also: you don't *have* to place the validator controls next to the control
> >> they are validating. Those validators could be anywhere on the page.
> >> And if you set Display to Dynamic, you won't notice them if everything is ok.

>
> >> Hans Kesting

>
> > Yes I know that.
> > I have it set to dynamic and I want them to show under each textbox,
> > dropdownlist, etc in my form.
> > This is why i need them to display: block.

>
> > This would be something really useful. I can't understand why the
> > control does not have an option to display block instead of display
> > inline.
> > Such a simple feature ... I think.

>
> > Miguel


That worked!

Thank You Very Much,
Miguel

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validators Mike Gleason jr Couturier Microsoft ASP .NET 3 29th May 2008 08:13 PM
Validators Carlos A. Microsoft ASP .NET 8 30th Aug 2006 09:13 AM
Asp.net validators Papanii Okai Microsoft ASP .NET 2 18th Jan 2006 06:27 PM
Validators =?Utf-8?B?TWlrZSBNb29yZQ==?= Microsoft Dot NET 1 16th Nov 2005 09:40 AM
Regular Expression validators NOT working, Required Field validators ARE working Ratman Microsoft ASP .NET 0 14th Sep 2004 10:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:36 PM.