D
Dave
Greetings,
I have a user control in my web form. I cannot reference it in code.
My HTML File has the header:
<%@ Register TagPrefix="PLB" Tagname="PIPSidebar"
src="ProjectListSidebar.ascx" %>
and references the User Control...
<PLB
IPSIDEBAR id="PIPSIDEBAR1" runat="server"></PLB
IPSIDEBAR>
It shows up in the page fine, but I cannot reference any properties from in
it. I am trying to reference the selected item of a listbox in the user
control with the following code...
PIPSIDEBAR1.ListBoxValue
but it doesn't recognize PIPSIDEBAR1 in vs.net or when I run the web
application. I just get the blue squiggly line under PIPSIDEBAR1.
By the way, my Property (within the ascx page to get the value of the
selected item) is below, but that doesn't seem to be the problem anyways.
Public ReadOnly Property ListBoxValue as String
Get
Return lst_ProjectNumName.SelectedItem.Value
End Get
End Property
I have a user control in my web form. I cannot reference it in code.
My HTML File has the header:
<%@ Register TagPrefix="PLB" Tagname="PIPSidebar"
src="ProjectListSidebar.ascx" %>
and references the User Control...
<PLB


It shows up in the page fine, but I cannot reference any properties from in
it. I am trying to reference the selected item of a listbox in the user
control with the following code...
PIPSIDEBAR1.ListBoxValue
but it doesn't recognize PIPSIDEBAR1 in vs.net or when I run the web
application. I just get the blue squiggly line under PIPSIDEBAR1.
By the way, my Property (within the ascx page to get the value of the
selected item) is below, but that doesn't seem to be the problem anyways.
Public ReadOnly Property ListBoxValue as String
Get
Return lst_ProjectNumName.SelectedItem.Value
End Get
End Property