CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > starter_kits_and_source_projects.portal_starter_kit Tags:
Item Type: Date Entered: 2/14/2004 8:36:18 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 7 Views: 185 Favorited: 0 Favorite
8 Items, 1 Pages 1 |< << Go >> >|
"R_a_V_e_N" <>
NewsGroup User
WebControl type not compatiable with the type of Control???2/14/2004 8:36:18 AM

0

Hi,

Iam trying to modify the IBuySpy Portal application so that it uses FreeTextBox instead of the normal TextBox. I replaced TextBox instance, in EditHtml.ascx, with FreeTextBox. I have also, changed the id to DesktopText.

However, when I try editing html, I get the following error:

The base class includes the field 'DesktopText', but its type (System.Web.UI.WebControls.TextBox) is not compatible with the type of control (FreeTextBoxControls.FreeTextBox).

Could someone please tell me what I am doing wrong?

Thanks!
"davidgmiles" <
NewsGroup User
Re: WebControl type not compatiable with the type of Control???2/14/2004 1:17:49 PM

0

the code behind is expecting a textbox - you need to change the codebehind declaration to expect a freetextbox control and recompile the app

DavidM
Various IBS Addons available at http://www.snowcovered.com

Lead Developer [vb & c#] - MCAD
"R_a_V_e_N" <>
NewsGroup User
Re: WebControl type not compatiable with the type of Control???2/14/2004 9:15:43 PM

0

Thanks, I had already done that, I just had'nt recompiled :(

Anyway, thanks for you're help!
"Graphfixz" <>
NewsGroup User
Re: WebControl type not compatiable with the type of Control???4/9/2004 2:48:47 PM

0

How did you change the codebehind to make it work?
Graphfixz Data & Web Design
http://www.graphfixz.com
"wunderkinder"
NewsGroup User
Re: WebControl type not compatiable with the type of Control???4/9/2004 4:51:26 PM

0

Switching to design mode when editing the ascx/aspx will sometimes work. It might not happen automatically with custom controls, so you need to look in your vb code and find where it is declaring the controls. This section is usually at the top of the page, and you might have to expand the #Region " Web Form Designer Generated Code " and edit it in there. Look for something along these lines:

Protected WithEvents MyTextBox As System.Web.UI.WebControls.TextBox


Jared Livingston
MrLivingston.com - Livingston Family Website

Test/Demo site - moonmark.com
"Graphfixz" <>
NewsGroup User
Re: WebControl type not compatiable with the type of Control???4/9/2004 5:26:49 PM

0

I found that and I have tried the following to no avail.


protected System.Web.UI.WebControls.FreeTextBox DesktopText;
protected System.Web.UI.FreeTextBoxControls.FreeTextBox DesktopText;

What am I missing?
Graphfixz Data & Web Design
http://www.graphfixz.com
"wunderkinder"
NewsGroup User
Re: WebControl type not compatiable with the type of Control???4/9/2004 5:46:12 PM

0

The System.Web.UI namespace does not contain those controls. Have you added a reference to the dll in your project? In the Solution Explorer, righ-click References, then choose Add Reference. Browse to your bin folder, and find the dll for the freetextbox controls. After you have added the reference, Intellisense should kick in when you start typing in your cs file. My guess is you need it to be this way:

protected FreeTextBoxControls.FreeTextBox DesktopText;


Jared Livingston
MrLivingston.com - Livingston Family Website

Test/Demo site - moonmark.com
"Graphfixz" <>
NewsGroup User
Re: WebControl type not compatiable with the type of Control???4/9/2004 6:14:45 PM

0

Thanks! I had forgotten about the Reference!!

Again thanks!
Graphfixz Data & Web Design
http://www.graphfixz.com
8 Items, 1 Pages 1 |< << Go >> >|


Free Download:













portal sdk not authorised to view this page msg.

creating a module that uses data

what happened to document uploading in the ibuyspy portal?

portal installation problem

how to use vs 2002?

switching tabs for different language

borders around modules

use images for tabs

ibuyspy spec

contacts email addresses hyperlinked

pb when i modify file.aspx

problem with response.redirect in manageusers.aspx.vb

please help with the bugs

maybe i'm lost in space but what is the difference between ibuyspy and portalstarterkit

asp.net 2.0 support for portals??

why is some...

portal starter kit works on my pc but not from other pc's

how to 'plug-in' a module without recompiling project.

anyone using ms wse 1.0 & concerned about clause #6

how to keep track urgent please

more than one page per tab?

recompile aspnetportal.dll

does anyone have any documentation on the siteconfiguration class?

problem with installing msde 2000

error: loading asp.net portal (csvs) installer v1.0.msi

role based tabs

security features

portal starter kit

how is the file portalcfg.cs being created

login failed for user 'portaluser'

annoying feature of visual studio .net ide

i'm a bit confused

database did not installed

installation issue : cannot detect sql server instance!

tab question

converting portalcfg.xml to sql server 2000 table

questionaire component engine - is there one available?

add new thread in discussion

anyone interested in building a portal using the new .net 2.0 framework?

stupid newbie question

display random photos

i buy spy portal vs portal starter kit

can't stay logged into site

important question eula and gpl.

allowing users to customize tab content and layout

bug in manageusers.aspx, updateuser_click

locked out of application

error when installing portal

display current date/time

how to expire a user's authentication ticket?

   
  Privacy | Contact Us
All Times Are GMT