Hi,
I am creating a simple ASP.NET AJAX Beta 2 application as follows:
<%@dotnet.itags.org.PageLanguage="C#"AutoEventWireup="true"CodeFile="Default.aspx.cs"Inherits="_Default" %>
<!
DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><
htmlxmlns="http://www.w3.org/1999/xhtml"><
headrunat="server"><title>Untitled Page</title>
</head>
<body>
<formid="form1"runat="server">
<asp:ScriptManagerID="ScriptManager1"runat="server">
</asp:ScriptManager>
<div>
<spanid="Span1"></span>
</div>
<scripttype="text/javascript">
function pageLoad()
{
var l=new Sys.UI.Label($('Span1'));
l.initialize();
l.set_text("Hello World");
}
</script>
</form>
</body>
</html>
It is NOT WORKING at all :-(. Where am I wrong?
You need install Preview CTP and refer them in the scriptmanager. Label control is in Sys.Preview.UI namespace.
No comments:
Post a Comment