Hum...you appear to have missed point. We said "you would just handle the Save event like you handle a Button's Click event", what we meant is:
EO Editor has a Save event. The way you use Save event on an Editor control is similar to the way you use Click event on a standard ASP.NET Button (not ToolBarButton!) control.
So if you know how to handle a standard ASP.NET Button control's Click event, you would follow the same steps to handle the Editor's Save event. The step to "bind" an eventhandler to a standard ASP.NET Button control's Click event is:
1. If you use Visual Studio, if you use C#, just double click the Button in design view; if you use VB, just go to the code window, select Button1 (or whatever name you give to the button) from the left listbox, and then "Click" from right side listbox;
2. If you work with HTML directly, you need to add OnClick attribute on your button this in your .aspx page;
Code: HTML/ASPX
<asp:Button OnClick="Button1_Click" ....>
....
</asp:Button>
And this in your .cs page:
Code: C#
protected void Button1_Click(object sender, EventArgs e)
{
.....code to handle the button click event......
}
Similarly, when you use our Editor, you follow essentially the same step:
1. If you use Visual Studio, if you use C#, just double click the Editor in design view; if you use VB, just go to the code window, select Editor1 (or whatever name you give to the button) from the left listbox, and then "Save" from right side listbox;
2. If you work with HTML directly, add OnSave in your .aspx:
Code: HTML/ASPX
<eo:Editor OnSave="Editor1_Save" ...>
....
</eo:Editor>
Code: C#
protected void Editor1_Save(object sender, EventArgs e)
{
.....code to handle the editor's ave event.....
}
The whole point is, how do you handle the click event of a standard ASP.NET button control? Follow the same step. Nobody is asking you to attach a standard ASP.NET Button to the Editor. The Editor is by itself a single control.
The database part is something separate. That has nothing to do with the editor or the button. Our sample shows you how to save the text to a file, which covers:
1. "Bind" the editor to an event handler;
2. Get the editor's text into a string;
3. Save the string into a file;
You will need to change step 3 to saving the string into your database (do not ask us how to do this....this has nothing to do with us!).
Hope this helps. If this still does not make any sense to you, then you may want to ask somebody around you to help you. The should be able to show you how it works in a few seconds.
Thanks