ukerandi
asked on
C# ASp.net InputFormTextBox Html issue
Hi,
I used following code to create InputFormTextBox, When i copy from excel sheet some records it will automatically creating
unnessary codes. See below
<P>
<TABLE style="WIDTH: 48pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=64 border=0>
<COLGROUP>
<COL style="WIDTH: 48pt" width=64>
<TBODY>
<TR style="HEIGHT: 17.25pt" height=23>
<TD style="BORDER-TOP: #f0f0f0; HEIGHT: 17.25pt; BORDER-RIGHT: #f0f0f0; WIDTH: 48pt; BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: transparent" height=23 width=64><FONT face=Calibri>Test<FONT class=font5><SUP>2</SUP></ FONT></FON T></TD></T R></TBODY> </TABLE></ P>
I need only copying and paste to InputFormTextBox ,Please some one show me how to do.I already Ask user to enter
starting point £ and end of sentance £,throught that im removing HTML code,But its time consuming,so any one show me any better way or how to avoid this issue
Expected Results
Seebelow my C# code How to creating InputFormTextBox
private InputFormTextBox richTextEditor
richTextEditor = new InputFormTextBox();
richTextEditor.RichText = true;
richTextEditor.RichTextMod e = SPRichTextMode.FullHtml;
richTextEditor.TextMode = TextBoxMode.MultiLine;
richTextEditor.Width = System.Web.UI.WebControls. Unit.Perce ntage(100) ;
richTextEditor.Rows = 10;
richTextEditor.Enabled = true;
richTextEditor.Visible = true;
//Panel1.Controls.Add(rich TextEditor );
Panel_Disclaimer.Controls. Add(richTe xtEditor);
I used following code to create InputFormTextBox, When i copy from excel sheet some records it will automatically creating
unnessary codes. See below
<P>
<TABLE style="WIDTH: 48pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=64 border=0>
<COLGROUP>
<COL style="WIDTH: 48pt" width=64>
<TBODY>
<TR style="HEIGHT: 17.25pt" height=23>
<TD style="BORDER-TOP: #f0f0f0; HEIGHT: 17.25pt; BORDER-RIGHT: #f0f0f0; WIDTH: 48pt; BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: transparent" height=23 width=64><FONT face=Calibri>Test<FONT class=font5><SUP>2</SUP></
I need only copying and paste to InputFormTextBox ,Please some one show me how to do.I already Ask user to enter
starting point £ and end of sentance £,throught that im removing HTML code,But its time consuming,so any one show me any better way or how to avoid this issue
Expected Results
Test<SUP>2</SUP>
Seebelow my C# code How to creating InputFormTextBox
private InputFormTextBox richTextEditor
richTextEditor = new InputFormTextBox();
richTextEditor.RichText = true;
richTextEditor.RichTextMod
richTextEditor.TextMode = TextBoxMode.MultiLine;
richTextEditor.Width = System.Web.UI.WebControls.
richTextEditor.Rows = 10;
richTextEditor.Enabled = true;
richTextEditor.Visible = true;
//Panel1.Controls.Add(rich
Panel_Disclaimer.Controls.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.