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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

<br />

Add a Submit Button<br />

You can also set the content using TextHTML1.Text = "Some content" and<br />

TextHTML2.Text = "Some other content" in a Page_load subroutine or<br />

some other server-side event.<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, you can add an ASP.NET button.<br />

<br />

Gaining Access to the Posted Content<br />

When posting to an action page, you have access to the posted content via<br />

Request.Form("TextHTML1"), where TextHTML1 is the id of the user control.<br />

<br />

Sub Page_Load(Sender As Object, E As EventArgs)<br />

If (Page.IsPostBack)<br />

TextHTML1.Text = Request.Form("TextHTML1")<br />

TextHTML2.Text = Request.Form("TextHTML2")<br />

End If<br />

End Sub<br />

<br />

Using a Custom Server Control<br />

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

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

1. Open Microsoft Visual Studio.NET.<br />

2. Select Toolbox, then right click the mouse and select Customize Toolbox.<br />

(See illustration below.)<br />

<strong>Ektron®</strong> <strong>eWebEditPro</strong> Developer’s <strong>Reference</strong> <strong>Guide</strong>, Release 5.1, Revision 1 543

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

Saved successfully!

Ooh no, something went wrong!