15.08.2013 Views

Ektron® eWebEditPro Developer's Reference Guide

Ektron® eWebEditPro Developer's Reference Guide

Ektron® eWebEditPro Developer's Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Adding a Submit Button<br />

Integrating <strong>eWebEditPro</strong> with ASP.NET<br />

Here is an example of a line that calls the editor: (In this example, the initial<br />

content is defined in the variable strContent1, found elsewhere in the file).<br />

<br />

Add a standard HTML submit button that allows the user to send the content to<br />

the Web server after entering it. Here is an example of a line that contains a<br />

submit button:<br />

<br />

or, add an ASP.NET button<br />

<br />

Using a Custom User Control<br />

Argument Description<br />

Initial<br />

content<br />

If you want to create a new ASP.NET page and place <strong>eWebEditPro</strong> on that page<br />

as a custom user control, follow these steps.<br />

1. Register the control file, ewebeditpro.ascx.<br />

2. Set up a form.<br />

3. Place the editor on the form.<br />

4. Add a submit button.<br />

5. Gain access to the posted content.<br />

The rest of this section explains how to complete these tasks.<br />

Register the Control File ewebeditpro.ascx<br />

If you want some text to appear in the editor the first<br />

time a user views it, you can enter text or a variable that<br />

contains the text. To enter text, enclose it within quotes<br />

(““). To enter a variable, define it elsewhere in the file.<br />

Your ASP.NET (aspx) page must register the ewebeditpro.ascx user control file.<br />

To accomplish this, insert the

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!