Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is wrong with ScriptManager?
Message
De
18/11/2014 02:15:11
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01611127
Message ID:
01611137
Vues:
32
>>>Hi,
>>>
>>>I have been having a problem with my ASP.NET web forms page unobtrusive validation NOT working on customer site. Works, however, for me in my VS 2012. Aside from the fact that validation does not work (that is, the requiredfield validation is ignored and empty fields do not stop from submitting the form) another manifestation is the following. When I run the page in IE 11 Developer Tools (DT) -> Network, ScriptResource.axd is NOT loading. That is, in the DT there are 3 lines with ScriptResource.axd?d..... that have Method GET but Result 404 (meaning not loaded, for whatever reasons).
>>>
>>>I found what is causing the problem on the customer site. The ASP.NET page has the following section:
>>>
>>>
>>>           <asp:ScriptManager ID="sm1" runat="server">
>>>                <Scripts>
>>>                    <asp:ScriptReference Name="jquery"/>
>>>                </Scripts>
>>>            </asp:ScriptManager>
>>>
>>>
>>>When I remove/delete the above section from the .aspx file the Validation works and the IE11 Developer Tools does not have the lines ScriptResource.axd.
>>>
>>>My question is, can you think of why removing the above section resolves the problem on customer site? What - if any - negative effects could be if I permanently remove this section?
>>>
>>>TIA.
>>
>>Does this help: https://connect.microsoft.com/VisualStudio/feedback/details/748064/unobtrusive-validation-breaks-with-a-script-manager-on-the-page
>>
>>Also, is their server fully patched? There have been updates to fix detection of IE versions when IE 10 and 11 were released. See http://stackoverflow.com/questions/17649604/javascript-functions-are-not-working-in-ie11/18651133#18651133
>>
>>Is it working with other browsers?
>
>I did see both URLs you posted in your message. I am not sure if they help.

Did you try adding the extra ScriptReference elements:
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" />
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" />
> I don't know if the server is fully patched. But my question was/is, why removing the above ScriptManager code makes Validation work? And what is the purpose of this SrcriptManager section? That is, what is the benefit of this section?

See: http://msdn.microsoft.com/en-us/library/bb398863(v=vs.100).aspx

>As far as if it works in other browsers, yes in some and no in others. But now that I know that removing the ScriptManager will make it work, should I do it?
>
>Thank you for your input!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform