L
live your lives
hello,
i'm trying to compile a .dll but i can't figure out what's going
wrong.
i have a simple form tag with an asp:Label tag in it like so:
<form method="post" runat="server">
<asp:Label id="Label1" runat="server" />
</form>
now in the c# code-behind file i have:
Label1.Text = "hmmm";
PROBLEM is two errors show up:
1. during build: "The type or namespace name 'Label1' could not be
found (are you missing a using directive or an assembly reference?)"
2. on the webpage: "Could not load type 'myNamespace.myPage'."
i can assure you that there is a bin folder & virtual directory folder
in my wwwroot. there is also a myNamespace namespace and a myPage
aspx page. i know that i'm just referencing Label1 the wrong way. i
tried sticking that Label1.Text code in Page_Load and even made a
separate function for it but it still has problems referencing Label1.
this is probably a newbie question...but i really can't figure out how
to reference that Label from the myPage.aspx.cs file to the
myPage.aspx file correctly!!! argh...
please help. thank you in advance.
i'm trying to compile a .dll but i can't figure out what's going
wrong.
i have a simple form tag with an asp:Label tag in it like so:
<form method="post" runat="server">
<asp:Label id="Label1" runat="server" />
</form>
now in the c# code-behind file i have:
Label1.Text = "hmmm";
PROBLEM is two errors show up:
1. during build: "The type or namespace name 'Label1' could not be
found (are you missing a using directive or an assembly reference?)"
2. on the webpage: "Could not load type 'myNamespace.myPage'."
i can assure you that there is a bin folder & virtual directory folder
in my wwwroot. there is also a myNamespace namespace and a myPage
aspx page. i know that i'm just referencing Label1 the wrong way. i
tried sticking that Label1.Text code in Page_Load and even made a
separate function for it but it still has problems referencing Label1.
this is probably a newbie question...but i really can't figure out how
to reference that Label from the myPage.aspx.cs file to the
myPage.aspx file correctly!!! argh...
please help. thank you in advance.