I just installed a new visual studio 2010, and when I create a new form and add jquery avaliable and scriptmanager, then firefox shows me eror Sys.ArgumentException: element with identifier 'form1' not found. Parameter Name: elementOrElementId
looks like that:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <head runat="server"> <title></title> <script src="Scripts/jquery-1.4.1.js" type="text/javascript" /> </head> <body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <div> </div> </form> </body> </html>
source share