Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for .NET
»
Re: Load a template on CuteEditor startup
Load a template on CuteEditor startup
Last post 06-17-2009, 12:41 AM by
Kenneth
. 1 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
06-16-2009, 8:33 PM
53190
CIC Web
Joined on 02-19-2009
Posts 48
Load a template on CuteEditor startup
Reply
Quote
Hi,
I would like to know how to load a template as the CuteEditor loads on startup.
I tried "TemplateUrl", but it only shows the template for a while then after CuteEditor fully loads it again disappears.
Appreciate your help on this.
06-17-2009, 12:41 AM
53197
in reply to
53190
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: Load a template on CuteEditor startup
Reply
Quote
Hi CIC,
Try properties LoadHtml, like below
<%@ Page Language=
"C#"
%>
<%@ Register TagPrefix=
"CE"
Namespace=
"CuteEditor"
Assembly=
"CuteEditor"
%>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<script runat=
"server"
>
protected
override
void
OnLoad(EventArgs e)
{
Editor1.LoadHtml(
"~/default.aspx"
);
base
.OnLoad(e);
}
</script>
<html xmlns=
"http://www.w3.org/1999/xhtml"
>
<head runat=
"server"
>
<title>Untitled Page</title>
</head>
<body>
<form id=
"form1"
runat=
"server"
>
<div>
<CE:Editor ID=
"Editor1"
runat=
"server"
>
</CE:Editor>
</div>
</form>
</body>
</html>
Regards,
ken