Click here to Skip to main content
16,009,114 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: find page.ispostback= false in global.asax Pin
KrIstOfK9-May-06 0:49
KrIstOfK9-May-06 0:49 
Questionneed to get id from url Pin
heatwave038-May-06 17:02
heatwave038-May-06 17:02 
AnswerRe: need to get id from url Pin
econner8-May-06 18:42
econner8-May-06 18:42 
Questionhow to delay download of file Pin
g00fyman8-May-06 13:33
g00fyman8-May-06 13:33 
AnswerRe: how to delay download of file Pin
CWIZO8-May-06 21:39
CWIZO8-May-06 21:39 
GeneralRe: how to delay download of file Pin
g00fyman9-May-06 3:34
g00fyman9-May-06 3:34 
Questionhow to extract from excel to sql 2005 Pin
amalatsliit8-May-06 13:11
amalatsliit8-May-06 13:11 
QuestionLogin trouble after publishing Pin
Armando_Ramirez8-May-06 11:10
Armando_Ramirez8-May-06 11:10 
AnswerRe: Login trouble after publishing Pin
MoustafaS8-May-06 11:27
MoustafaS8-May-06 11:27 
GeneralRe: Login trouble after publishing Pin
Armando_Ramirez8-May-06 11:30
Armando_Ramirez8-May-06 11:30 
QuestionForms Authentication?????as soon as possible Pin
haneen19848-May-06 10:43
haneen19848-May-06 10:43 
AnswerRe: Forms Authentication?????as soon as possible Pin
MoustafaS8-May-06 11:46
MoustafaS8-May-06 11:46 
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 
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 
***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...***



It seems to me that your base class should inherit usercontrol not web control. Then your usercontrol codefile should inhert the base class.
Like this
//Base class
public class ctrlBreadCrumbs:System.Web.UI.UserControl
{
}

//User Control

public class BreadCrumbs : ctrlBreadCrumbs
{
}

how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
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 

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.