Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for .NET
»
Re: Cast problem in event
Re: Cast problem in event
11-29-2004, 3:26 AM
Wanja
Joined on 10-13-2004
Netherlands
Posts 5
Re: Cast problem in event
Reply
Quote
Terry,
private void Page_Load(object sender, System.EventArgs e) { CuteEditor.Editor editor = new CuteEditor.Editor(); editor.FilesPath = "controls/CuteEditor_Files"; editor.Unload += new System.EventHandler(editor_Unload); placeholer.Controls.Add(editor); } private void ceCompetenceComment_Unload(object sender, system.EventArgs e) { arrayList.Add(sender); } private void lblSave_Click(object sender, System.EventArgs e) { for (i=0;i<arrayList.Count;i++) { CuteEditor.Editor editor = new CuteEditor.Editor(); editor = (CuteEditor.Editor)arrayListCompetenceComment[i]; Response.Write(editor.Text); } }
The Unload event occurs when the server control is unloaded from memory.
Regards, Wanja.
View Complete Thread