Problems getting text from an openWysiwyg enabled TextBox

Posted by stephenbayer on Stack Overflow See other posts from Stack Overflow or by stephenbayer
Published on 2010-04-01T19:27:44Z Indexed on 2010/04/01 19:33 UTC
Read the original article Hit count: 464

Filed under:
|

I have a multiline text box on a form. I dropped in the js file for openWYSIWYG and attached it to the textbox. When I submit the form, the text box has no value. I'm having problems finding documentation on this library. Has anyone else used this who would be able to direct me as to where I can troubleshoot this issue.

The HTML is here:

<table>
 <tr><td>Comment</td>
     <td><asp:TextBox ID="txtComment" 
                       Height="150px" 
                       TextMode="MultiLine" 
                       runat="server" />
     </td>
 </tr>
 <tr><td colspan="2"><asp:Button ID="btnSubmit" 
                                 runat="server" 
                                 OnClick="btnSumbit_Click"
                                 Text="Submit" />
</table>
<script type="text/javascript" language="javascript">
    WYSIWYG.attach('<%= txtComment.ClientID %>', full);
</script>

The codebehind for the method is:

   public void btnSumbit_Click(object sender, EventArgs e)
    {
       //txtComment.Text is ""  The text is not available
    }

© Stack Overflow or respective owner

Related posts about openwysiwyg

Related posts about ASP.NET