Hi,

My page:

<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI"
TagPrefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml";>
<head runat="server">
<script type="text/javascript" src="js/jquery-1.3.1.js" />
    <title>hhhh</title>
                        <style type="text/css">
                        *.red { color:  #f30; }
                        </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>

                        <div id="orderedlist">
                        <p>Hello</p>
                        </div>

                        <script type="text/javascript">

                                $(document).ready(function() {
                                        $("#orderedlist").addClass("red");
                                });

                        </script>
    </div>
    </form>
</body>
</html>

--------------

Starts fine enough, but I just get an empty page. The page source is
present and correct. Removing the reference to jQuery results in the
page loading fine (though obviously the jQuery code in the script
block fails). Firebug does however reveal that the BODY tag is indeed
empty, as shown in prepared screenshot:

http://programx.co.uk/media/p/608.aspx

This is using ASP.NET 2.0 with ASP.NET AJAX 3.5, but I don't think
this is the issue because I have disabled the ASP.NET AJAX portions in
the web.config file in some of my tests.

I must be missing something, surely?



Reply via email to