JQuery Validate odd behaviour with the ASP.NET Script Manager

by Pascal Parent 24. May 2009 13:06

Read this article in your language IT | EN | DE | ES

I discovered the JQuery Validate plugin a while back and could never get it to work in ASP.NET until today and though I have no idea why this the code bellow does not work.

<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    <CompositeScript>
        <Scripts>
            <asp:ScriptReference Path="~/Assets/Javascript/jquery.validate.pack.js" />
        Scripts>
    CompositeScript>
asp:ScriptManagerProxy>

If the extension is in the <CompositeScript> section it does not work, I will try to figure out why later but if it is removed from the <CompositeScript> it start to work again.

So the resultant code will look like this:

<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    <Scripts>
       <asp:ScriptReference Path="~/Assets/Javascript/jquery.validate.pack.js" />
    Scripts>
asp:ScriptManagerProxy>
I honestly say that the JQuery Validate plugin is the best validation package I have come across in a while, go and get it.
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Tags: ,

General

Comments

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010 The ASP.NET Guy