Results 1 to 5 of 5

Thread: Problem of Validators in Netscape

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Posts
    11

    Question Problem of Validators in Netscape

    Hi,

    I am developing a big portal in ASP.NET. In which i have applied many validators in single page. This validators are working correctly in IE. But when i use the same page in Netscape these validators become server side validator. And for my portal it's a big problem. I have searched many places for the solution. But couldn't find any solution. So, if any body knows pls help me out.

    Thanx

  2. #2
    New Member
    Join Date
    Mar 2003
    Posts
    9
    Does it make a difference if your target schema is set to IE3 and Netscape 3 in the project properties CommonProperties.DesignerDefaults?
    Brad

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Posts
    11

    Not working

    Thanx for reply.

    But I allready tried "targetschema" property before this. But it's not working. Tell me any other things if u know.

    Thanx

  4. #4
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    How are you testing with the netscape browser? Are you uploading the project to your webhost then testing it?

    I had such a problem. The thing is my validators would fire if I was testing on my local machince but would'nt fire when I uploaded the project to my webhost. After doing some reading in Essential ASP.NET, I found what I was looking for. It turns out that for the validator controls, ASP.NET generates a WebUiValidation.js javascript file and places it in c:/inetpub/wwwroot/aspnet/1.1.422/. Now you have to upload that file to your webhost. Then all you do is set a reference to that file on the page with the validation controls like this.

    Code:
    <script language ='javascript'
      src='webuivalidation.js'
    </script>
    Also, you should also use Page.IsValid with the validator controls.

  5. #5

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Posts
    11

    This is by default included

    Thanx for reply.

    But whenever you put any validator control on ASPX page it automatically 'webuivalidation.js' will be included on the page irrespective of any browser. Without this file even it will not work in IE. My problem is the validators are successfully working on IE but in netscape validators fires after postback.

    Thanx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width