<HTML>
<Body>
<Form runat = "server">
<Input id = "hddivth" type = "text" value = "Hello! "/>
<Ftb: freetextbox id = "freetextbox1"
Toolbarlayout = "paragraphmenu, fontsizesmenu; bold, italic, underline |
Bulletedlist, numberedlist"
Runat = "server"/>
<SCRIPT type = "text/JavaScript" Language = "JavaScript"> // [value assignment settings]
Function textset ()
{
VaR hddivth = Document. getelementbyid ("hddivth ");
VaR hiddenhtml = Document. getelementbyid ("freetextbox1 ");
VaR text = hddivth. value;
Hiddenhtml. value = text; // hide the value
Freetextbox#editor.document.body.innertext = text // explicit Value
// Freetextbox#editor.document.body.innerhtml = text;
}
</SCRIPT>
</Form>
</Body>
</Html>
Note <SCRIPT> the function is placed after the Ftb control is called.
Freetextboxshorteditor, Ftb Control ID + "_ Editor" = the iframe id of the editing area, so that a new value is displayed. (* ^__ ^ *)
The specific method is to use IE to browse your page, view the source file, find your freetextbox Control name, and then find the iframe id of your editing area.