help a newbie: can't compile .dll for asp.net/c# pages

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.
 
L

live your lives

ok nevermind, it's not fixed...if you see a "fixed" msg don't believe
it. for some reason this error came up again and it's really annoying
me. i haven't even done anything to my code to make this error show
up again. it's as if it has a mind of its own and feels like telling
me i'm missing a namespace or type when it feels like it...please
help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top