ASP.NET Help
I cannot open the RAD splitter anyone help please. It shows me an erorr in the bottom of the page.
Thanks
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Import Namespace ="Telerik.WebControls" %>
<%@ Register Assembly="RadSplitter.Net2" Namespace="Telerik.WebControls" TagPrefix="radspl" %>
<!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">
<title>My page </title>
</head>
<script runat ="server">
public void Page_Load(object sender, EventArgs e)
{
RadSplitter splitter = new RadSplitter(); // creating splitter
splitter.ID = "RadSplitter1"; // with id = RadSplitter1
splitter.Width = new Unit("300px"); // width of the splitter
splitter.Height = new Unit("400px"); // height of the splitter
splitter.Orientation = RadSplitterOrientation.Horizontal; // splitter orientation
form1.Controls.Add(splitter);
}
</script>
<body>
<form id="form1" runat="server">
<div>
<radspl:radsplitter runat="server" id="RadSplitter1" orientation="Vertical" width="400px" height="300px">
</radspl:radsplitter>
</div>
</form>
</body>
</html>
|