Posted By: phunky_avocado | Sep 23rd, 2004 @ 11:32 AM
page 1 of 1
Comments: 4 | Views: 6179
phunky_avocado
phunky_avocado
Dude! It's the (grilled) cheese.
The built-in .NET validators only work in browsers that support ECMA Script 1.2 or greater and the Microsoft DOM.  The former makes sense but the latter kinda sucks. 

I created a bunch of validators that override the normal ASP.NET validator visible behaviours (I do more than just put a red message on the client).

I need to be able to validate when the user is using Netscape Navigator 7.2.  It's the Microsoft DOM requirement that is getting in the way.  Anyone know how to trick ASP.NET to think the browser is "uplevel" when according to Microsoft it is not?

Thanks.

Something along these lines should work:

<untested>
If Request.Browser.Browser = "(useragent)" Then

   Me.ClientTarget = "uplevel"

End If
</untested>

Good question though, I think I'll futs around with this and blog about it tonight.

sbc
sbc
GW R/Me
Vote for this suggestion on the MSDN Labs site: Client Side Validation and this bug: asp:Menu control only works in IE if you wish ASP.NET 2.0 to be nicer with other browsers.
page 1 of 1
Comments: 4 | Views: 6179
Microsoft Communities