Results 1 to 6 of 6

Thread: RequiredFieldValidator on Server - Resolved

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2002
    Location
    Tulsa,Ok
    Posts
    262

    RequiredFieldValidator on Server - Resolved

    I have a wierd problem with a required field validator. I can run the code on
    my machine and it works as it should. When I put it on the webserver, it
    fails to run. We have two webservers that are load balanaced (Just saying
    this for explaination, I know its not the LB) and the code fails on both. I
    also have a internal intranet webserver. The pages run fine on them. All three
    are running Server 2003 Web Edition and all the settings from within IIS look
    identical accross the servers with the exception that the webserver requires
    authentication since people log on from the outside world as well.

    Does anyone have any idea why these would not be firing? I am at a loss as
    to why they work on one server but not the other, they work on my machine but
    not live. All I am trying to do is make sure the user enters a few key pieces
    of information on a form. I have even gone so far as to just write it in
    javascipt but it wont fire what way either.

    Thanks
    Last edited by Phenglai; May 16th, 2005 at 08:40 PM.

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Re: RequiredFieldValidator on Server

    Maybe its not the webserver, maybe its your browser.

    Perhaps your security settings in IE are not trusting javascript from an external domain?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2002
    Location
    Tulsa,Ok
    Posts
    262

    Re: RequiredFieldValidator on Server

    I am using the same browser, It debugs on my machine and I am running in my browser. When I post the code live, I hit it with my browser.

    Could there be a settings difference?

  4. #4
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Re: RequiredFieldValidator on Server

    If you're using the same browser, check its security settings. The fact that even if you hard code the javascript and it doesn't run tells me:
    1) You didn't code the javascript correctly

    or

    2) Assuming you know how to implement javascript in a web page, your browser isn't trusting the javascript served up by the other machine. Change the security settings in your browser. In Ie, its under Tools.. Options.. Security.. There are two zones : Local intranet, and Internet. Make sure both settings allow javascript (if it says default level in both, this isn't your problem - because by default, IE trusts javascript from other domains.)

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2002
    Location
    Tulsa,Ok
    Posts
    262

    Re: RequiredFieldValidator on Server

    I eventually just scrapped the RequiredFieldValidators and did it all in javascript. It all works as it should no matter where I put it.

    I just dont understand why the RequiredFieldValidators do not work on the live webserver.

  6. #6
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Re: RequiredFieldValidator on Server

    Well, you could have posted some code for us to inspect first.

    Anyway, there could be a whole load of things... it could machine.config at the webserver is corrupt or has been manually changed for other reasons... it could be the webserver is incorrectly identifying your client browser as downlevel and not rendering the javascript for the validators (you didn't state if the js code was in the html source served by the other server or not).

    Well, doesn't matter since you scrapped it.

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