This is problem thats pretty tricky for me, but for the guru's here, i know this will be a piece of cake... I hope you guys can help a newbie like me.
Im using the div tag's contentEditable property for my simple rich text editing (bold, italize, underline, color pick and createLink).
Code for my div tag :
<div class="divClass" id="oComment" contentEditable="true" runat="server" name="oComment"></div>
Two things i need do.
1. Validate if this field has values
2. Submit the value to another page
For the validation, i thought i could use the requiredfield validator control, but .net returns an error.
" Control 'oQuestion' referenced by the ControlToValidate property of 'RequiredFieldValidator1' cannot be validated "
For the 2nd one,
private void btnSubmit_Click(object sender,System.EventArgs e)
{
Session["oCommentHTML"]=oComment.InnerText;
Server.Transfer("ValueChecker.aspx");
}
I hope anyone here can help me on this. i am all ears
Im using the div tag's contentEditable property for my simple rich text editing (bold, italize, underline, color pick and createLink).
Code for my div tag :
<div class="divClass" id="oComment" contentEditable="true" runat="server" name="oComment"></div>
Two things i need do.
1. Validate if this field has values
2. Submit the value to another page
For the validation, i thought i could use the requiredfield validator control, but .net returns an error.
" Control 'oQuestion' referenced by the ControlToValidate property of 'RequiredFieldValidator1' cannot be validated "
For the 2nd one,
private void btnSubmit_Click(object sender,System.EventArgs e)
{
Session["oCommentHTML"]=oComment.InnerText;
Server.Transfer("ValueChecker.aspx");
}
I hope anyone here can help me on this. i am all ears