G
Guest
Hi all,
I've got a page with a user control on, added via VS. I'm trying to get to a
property of the user control (or more precisely, a public var).
Here's the code at the top of my aspx page...
<%@ Register TagPrefix="dI2" TagName="dartsUC_rolodexsearch"
Src="dartsUC_rolodexsearch.ascx" %>
then in the html...
<dI2:dartsUC_rolodexsearch id="dartsUC_rolodexsearch1"
runat="server"></dI2:dartsUC_rolodexsearch>
and the top of the ascx file looks like...
<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="dartsUC_rolodexsearch.ascx.cs"
Inherits="dartsIntranet.WUC_rolodexsearch"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
My question is how do I get to the user control. If I try
protected dartsUC_rolodexsearch dartsUC_rolodexsearch1;
in my page cs file, I get a cannot find type or namespace
"dartsUC_rolodexsearch".
Please, please help. I've been stuck on this for 2wks now - can't find
anything that makes sense!
Cheers
Dan
I've got a page with a user control on, added via VS. I'm trying to get to a
property of the user control (or more precisely, a public var).
Here's the code at the top of my aspx page...
<%@ Register TagPrefix="dI2" TagName="dartsUC_rolodexsearch"
Src="dartsUC_rolodexsearch.ascx" %>
then in the html...
<dI2:dartsUC_rolodexsearch id="dartsUC_rolodexsearch1"
runat="server"></dI2:dartsUC_rolodexsearch>
and the top of the ascx file looks like...
<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="dartsUC_rolodexsearch.ascx.cs"
Inherits="dartsIntranet.WUC_rolodexsearch"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
My question is how do I get to the user control. If I try
protected dartsUC_rolodexsearch dartsUC_rolodexsearch1;
in my page cs file, I get a cannot find type or namespace
"dartsUC_rolodexsearch".
Please, please help. I've been stuck on this for 2wks now - can't find
anything that makes sense!
Cheers
Dan