.NETGURU
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




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification