Click here to Skip to main content
15,921,959 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCOM threading model and Web Services Pin
Scott Gygi8-May-06 10:35
Scott Gygi8-May-06 10:35 
QuestionKeeping the position on the page Pin
dptalt8-May-06 9:03
dptalt8-May-06 9:03 
AnswerRe: Keeping the position on the page Pin
CWIZO8-May-06 10:05
CWIZO8-May-06 10:05 
GeneralRe: Keeping the position on the page Pin
dptalt9-May-06 5:04
dptalt9-May-06 5:04 
AnswerRe: Keeping the position on the page Pin
Joshua Lunsford8-May-06 10:22
Joshua Lunsford8-May-06 10:22 
AnswerRe: Keeping the position on the page Pin
Tirthadip8-May-06 21:57
Tirthadip8-May-06 21:57 
AnswerRe: Keeping the position on the page Pin
HimaBindu Vejella8-May-06 22:37
HimaBindu Vejella8-May-06 22:37 
QuestionError: "Base class includes the field xxx but its type yyy is not compatible with the type of control yyy Pin
leckey8-May-06 8:34
leckey8-May-06 8:34 
Hello,
I first created a class called BreadCrumbs.cs. Here is a snippet of code...
***Portion of BreadCrumbs.cs code***
namespace Sabre_Solutions
{
///
/// Summary description for BreadCrumbs.
///
public class ctrlBreadCrumbs:System.Web.UI.WebControls.WebControl
{
public string Separator = ">";
public string RootName = "Home Page";
public char directoryNameSpacer = '_';
private string _PageTitle;


public string PageTitle
{
get
{

***and so on...****
Okay, second part. Created my own control called BreadCrumbs.ascx. This is its code (in entirety)
***code for BreadCrumbs.ascx
<%@ Register TagPrefix = "bc" Namespace = "Sabre_Solutions" Assembly = "BreadCrumbs"%>
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="BreadCrumbs.ascx.cs" Inherits="Sabre_Solutions.BreadCrumbs" %>


****End .asxc***
Part three, the code behind..
****BreadCrumbs.asc.cs*******
namespace Sabre_Solutions
{
using System;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.ComponentModel;
using System.Text;

///
/// Summary description for BreadCrumbs.
///

public class BreadCrumbs : System.Web.UI.UserControl
{
protected ctrlBreadCrumbs bc1;
private string _strHeaderText;
public string HeaderText
{
get
{
return _strHeaderText;
}
set
{
_strHeaderText = value;
}
}

private void Page_Load(object sender, System.EventArgs e)
{
bc1.PageTitle = HeaderText;
}

***and so on...***

So the question. Everything compiles correctly, but when I drop the control into an .aspx file and try to run I get this error:
The base class includes the field 'bc1', but its type (Sabre_Solutions.ctrlBreadCrumbs) is not compatible with the type of control (Sabre_Solutions.ctrlBreadCrumbs).

I've been searching online and it seems to be a common problem, but none of the answers were on point (for me anyhow). I've tried changing a number of things but with no luck. I'm sure it's something small...can anyone see it?



-- modified at 14:35 Monday 8th May, 2006
AnswerRe: Error: "Base class includes the field xxx but its type yyy is not compatible with the type of control yyy Pin
ToddHileHoffer8-May-06 8:45
ToddHileHoffer8-May-06 8:45 
QuestionRe: Error: "Base class includes the field xxx but its type yyy is not compatible with the type of control yyy Pin
leckey8-May-06 9:10
leckey8-May-06 9:10 
QuestionConnect to ADS in ASP and ASP.Net Pin
csri8-May-06 8:31
csri8-May-06 8:31 
AnswerRe: Connect to ADS in ASP and ASP.Net Pin
HimaBindu Vejella8-May-06 22:41
HimaBindu Vejella8-May-06 22:41 
GeneralRe: Connect to ADS in ASP and ASP.Net Pin
csri8-May-06 23:37
csri8-May-06 23:37 
QuestionSQLDataReader data binding error = frustrated! Pin
Kerberos258-May-06 8:29
Kerberos258-May-06 8:29 
AnswerRe: SQLDataReader data binding error = frustrated! Pin
ToddHileHoffer8-May-06 8:39
ToddHileHoffer8-May-06 8:39 
GeneralRe: SQLDataReader data binding error = frustrated! Pin
Kerberos258-May-06 8:47
Kerberos258-May-06 8:47 
GeneralRe: SQLDataReader data binding error = frustrated! Pin
ToddHileHoffer8-May-06 8:58
ToddHileHoffer8-May-06 8:58 
GeneralRe: SQLDataReader data binding error = frustrated! Pin
Kerberos258-May-06 9:10
Kerberos258-May-06 9:10 
QuestionDo something before Page Closing Problem.. Pin
cheeken2u8-May-06 7:00
cheeken2u8-May-06 7:00 
AnswerRe: Do something before Page Closing Problem.. Pin
ToddHileHoffer8-May-06 8:17
ToddHileHoffer8-May-06 8:17 
GeneralRe: Do something before Page Closing Problem.. Pin
CWIZO8-May-06 10:16
CWIZO8-May-06 10:16 
AnswerRe: Do something before Page Closing Problem.. Pin
TheManFran8-May-06 18:50
TheManFran8-May-06 18:50 
AnswerRe: Do something before Page Closing Problem.. Pin
HimaBindu Vejella8-May-06 23:35
HimaBindu Vejella8-May-06 23:35 
AnswerRe: Do something before Page Closing Problem.. Pin
Bhasker Pinninti9-May-06 3:10
Bhasker Pinninti9-May-06 3:10 
QuestionCheckBoxList Pin
sroberts828-May-06 6:47
sroberts828-May-06 6:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.