Not Aswered: RTB: error? the field 'DesktopText', but its type (System.Web.UI.WebControls.TextBox) is not compatible with the type of control
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngrichtextbox' list.


Dennis West
Could this be due to to not declaring the richtextbox in the codebehind page if so what is the syntax for declating 'DesktopText' as a richtextbox type?
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The base class includes the field 'DesktopText', but its type (System.Web.UI.WebControls.TextBox) is not compatible with the type of control (RichTextBoxControl.RichTextBox).

Source Error:

Line 44:                                                     </td>
Line 45:                                                     <td>
Line 46:                                                         <RTB:RICHTEXTBOX id="DesktopText" runat="server" license="xxxxxxx=="></RTB:RICHTEXTBOX>
Line 47:                                                         <asp:Button id="myButton" runat="server" text="Show HTML"></asp:Button>
Line 48:                                                         <asp:Label id="myLabel" runat="server"></asp:Label>

Source File: C:\PortalVBVS\PortalVBVS\DesktopModules\EditHtml.aspx Line: 46
Reply to this message...
 
    
Ollie Cornes

Hi Dennis,

You can declare a control as type RichTextBox by specifying the
RichTextBoxControl.RichTextBox type. For an example, check out this KB
article:
http://richtextbox.mykbpro.com/kbReadArticle.asp?ArtID=384

Does that answer your question?

Ollie
--
http://www.richtextbox.com/
The no. 1 content editor for ASP.NET

-----Original Message-----
From: Click here to reveal e-mail address
[mailto:Click here to reveal e-mail address] On Behalf Of
Dennis West
Sent: 29 July 2002 22:17
To: aspngrichtextbox
Subject: [aspngrichtextbox] Not Aswered: RTB: error? the field
'DesktopText', but its type (System.Web.UI.WebControls.TextBox) is not
compatible with the type of control

Could this be due to to not declaring the richtextbox in the codebehind
page if so what is the syntax for declating 'DesktopText' as a
richtextbox type?
Parser Error
Description: An error occurred during the parsing of a resource required
to service this request. Please review the following specific parse
error details and modify your source file appropriately.

Parser Error Message: The base class includes the field 'DesktopText',
but its type (System.Web.UI.WebControls.TextBox) is not compatible with
the type of control (RichTextBoxControl.RichTextBox).

Source Error:

Line 44:
</td>
Line 45:
<td>
Line 46:
<RTB:RICHTEXTBOX id="DesktopText" runat="server"
license="xxxxxxx=="></RTB:RICHTEXTBOX>
Line 47:
<asp:Button id="myButton" runat="server" text="Show HTML"></asp:Button>
Line 48:
<asp:Label id="myLabel" runat="server"></asp:Label>

Source File: C:\PortalVBVS\PortalVBVS\DesktopModules\EditHtml.aspx
Line: 46
| [aspngrichtextbox] member Click here to reveal e-mail address = YOUR ID |
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp = JOIN/QUIT

Reply to this message...
 
 
System.Web.UI.WebControls.TextBox
System.Windows.Forms.RichTextBox




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com