Forcing .NET to render the '/aspnet_client/system_web/1_0_3705_0/WebUIValidation.js' on the web page

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Forcing .NET to render the '/aspnet_client/system_web/1_0_3705_0/WebUIValidation.js' on the web page

    We are using our own custom JavaScript validation as well as .Net
    validation. However, when we include our custom validation on a page,
    ..NET does not render/write the
    '/aspnet_client/system_web/1_0_3705_0/WebUIValidation.js' path on the
    page. If we do not include our own custom JavaScript validation, .NET
    DOES render/write the
    '/aspnet_client/system_web/1_0_3705_0/WebUIValidation.js' path on the
    page.

    I would like to make sure the path gets rendered automatically. Can I
    force this to happen? I do not want to hardcode the path on the page.
    I would also settle for setting it dynamically. However, I have been
    unsuccessful reading the path from the machine.config file and rendering
    the path
    <webControls clientScriptsLocation="/aspnet_client/{0}/{1}/"/>

    Any thoughts.


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Art Thomas Guest

  2. Similar Questions and Discussions

    1. Forcing a page NOT to load from cache
      I have tried: <cfoutput> <cfheader name="expires" value="#now()#"> <cfheader name="pragma" value="no-cache"> <cfheader name="cache-control"...
    2. CFMX fails to render any CFM page
      I'm running an IIS 6.0 server with Cold Fusion MX 6.2 server. Everytime I try to load a .CFM document with a browser, the page is rendered blank. ...
    3. Datagrid render column headings. ASPX Page Model. Events
      I have written a usercontrol which I drop onto aspx pages in my project, this usercontrol performs changes on the content of various aspx controls...
    4. Forcing Page Postback at END of event (while retaining viewstate)
      I have a page that reads values from an XML file to display to the user. The page also has a control panel that allows administrators to update the...
    5. aspnet_client folder
      Hi All, Is there a way to put aspnet_client direcotry under a particular virtual directory instead of the web root We have two sites hosted...
  3. #2

    Default Re: Forcing .NET to render the '/aspnet_client/system_web/1_0_3705_0/WebUIValidation.js' on the web page

    When/How are you rendering your own validation to the page?

    bill


    "Art Thomas" <kedroski@eglin.af.mil> wrote in message
    news:uybUlQsUDHA.2564@tk2msftngp13.phx.gbl...
    > We are using our own custom JavaScript validation as well as .Net
    > validation. However, when we include our custom validation on a page,
    > NET does not render/write the
    > '/aspnet_client/system_web/1_0_3705_0/WebUIValidation.js' path on the
    > page. If we do not include our own custom JavaScript validation, .NET
    > DOES render/write the
    > '/aspnet_client/system_web/1_0_3705_0/WebUIValidation.js' path on the
    > page.
    >
    > I would like to make sure the path gets rendered automatically. Can I
    > force this to happen? I do not want to hardcode the path on the page.
    > I would also settle for setting it dynamically. However, I have been
    > unsuccessful reading the path from the machine.config file and rendering
    > the path
    > <webControls clientScriptsLocation="/aspnet_client/{0}/{1}/"/>
    >
    > Any thoughts.
    >
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    William F. Robertson, Jr. Guest

  4. #3

    Default Re: Forcing .NET to render the '/aspnet_client/system_web/1_0_3705_0/WebUIValidation.js' on the web page

    For our custom validation we are including the custom javascript in the
    header tag of ASP.NET pages. However, I want to clarify what I mean
    when I say rendering. I consider the dynamic creation and inclusion of
    the '/aspnet_client/system_web/1_0_3705_0/WebUIValidation.js' path on
    the page rendering. We DO NOT do this. I was relying on .NET to handle
    this.
    For our validation, the javascript code is on the page. Some of our
    fields incorporate the required field validation included as part of
    .NET. This is the code that is looking for the path to the use
    "WebUIValidation.js" page but the path was never rendered to the page.

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Art Thomas Guest

  5. #4

    Default Re: Forcing .NET to render the '/aspnet_client/system_web/1_0_3705_0/WebUIValidation.js' on the web page

    When using a ASP.NET CustomValidator, which runs client-side javascript,
    and using other ASP.NET validators (i.e. RequiredField, Compare, etc.)
    the <script language="javascript"
    src="http://servername/aspnet_client/system_web/1_0_3705_0/WebUIValidati
    on.js"></script> tag needed for the other .NET validators to work is not
    rendered. On other pages without the ASP.NET CustomValidator that tag
    is rendered. This is the only difference we can find between pages that
    function properly and the ones that don't. I interpret what you meant
    by BaseValidator as an ASP.NET validator that comes with the IDE. It
    seems there should be a simple way to trigger the rendering of this tag
    on a page with a CustomValidator considering it is rendered
    automatically on other pages.



    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Art Thomas Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139