Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > BaseValidator - How to stop it from rendering "visibility:hidden"

Thread Tools

BaseValidator - How to stop it from rendering "visibility:hidden"

Posts: n/a
I'm creating a Validator that inherits from BaseValidator. This
validator is using Callbacks (ASP.NET 2.0)

I'm able to send the callback and recieve the data that i want but have
been scratching my head as to why i can't simply assigne the returned
value (which is the value to be assiged to the style.visibility
property of a span element) to my span element's style.visibility

I've figured out that the BaseValidator is rendering the "visibility:
hidden" style to the control and for some reason this makes any
assignment in JavaScript useless!

1. I know my values are being set to the style.visibility property! I
have tested the property after assignment
2. The "visibility: hidden style" is viewable in ViewSource in IE

1. Why is it so! (Why can't i assign the value to an element that has
that style rendered already) (Just expressing my confusion. I know i'm
out of context!)
2. Can i stop the BaseValidator rendering the "visibility: hidden

I would appreciate any light on this as i've been going for about 8
hours on this...

Reply With Quote

Thread Tools

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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
baseValidator.ErrorMessage is rendering between start & end tags instead of as an attribute TS ASP .Net Web Controls 1 12-19-2007 07:03 AM
BaseValidator Display problem on postback Sri Prasad Tadimalla ASP .Net 0 01-04-2007 11:25 PM
BaseValidator Custom Validator validating on a Repeater =?Utf-8?B?Y3Jpeg==?= ASP .Net 1 08-17-2006 03:30 PM
BaseValidator Inherited Ctrl Not working with RequiredFieldValidator James ASP .Net Building Controls 2 12-04-2005 11:35 AM