Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for .NET
»
Re: HowTo: Get ceToolbar Custom Object Values
Re: HowTo: Get ceToolbar Custom Object Values
11-26-2004, 1:42 PM
KenA
Joined on 01-11-2004
Posts 66
Re: HowTo: Get ceToolbar Custom Object Values
Reply
Quote
Thanks Terry,
Actually being able to insert a 'Holder' as a atributte of CE tag makes things easy. Before that I was doing something like:
System.Web.UI.WebControls.TextBox tbxEmail = new System.Web.UI.WebControls.TextBox(); tbxEmail.ID = "tbxEmail"; tbxEmail.Width = 200; tbxEmail.Style["position"] = "relative"; tbxEmail.Style["top"] = "2px"; tbxEmail.Style["left"] = "1px"; ce1.AddToolControl("tbxEmail", tbxEmail);
And in the ce1_PostBackCommand
if( string.Compare(e.CommandName,"Save",true)==0 ) { // Check tbxEmailText : tbxEmail is inside the CuteEditor Toolbar! IEnumerator IE = this.ce1.ToolControls.GetEnumerator(); int i=0; while( i<this.ce1.ToolControls.Count ) { IE.MoveNext(); if( this.ce1.ToolControls[i].Name == "tbxEmail" ) { TextBox tbx = new TextBox(); tbx = (TextBox)this.ce1.ToolControls[i].Control; tbxEmailText = tbx.Text.Trim(); break; } i++; } //... etc }
Regards,
»»» KenA
View Complete Thread