K
K Viltersten
I've designed a class as below.
public partial class Test
: System.Web.UI.Page {
protected void Page_Load(
object sender, EventArgs e)
{
...
ThatLabel.Text = "!";
...
}
...
}
Now, i'd like to place it into a
namespace but when i do that, it seems
that the controls i refer to (ThatLabel)
are, do not exist in the current
context.
What is the reason for that and how can
i resolve the problem?
The only guess i have is that the class
begin partial, has other parts of it
somewhere and THAT OTHER part, declaring
and creating the actual control, gets
placed OUTSIDE the new namespace.
However, i haven't found "the rest" of
the code. How can i get to it?
public partial class Test
: System.Web.UI.Page {
protected void Page_Load(
object sender, EventArgs e)
{
...
ThatLabel.Text = "!";
...
}
...
}
Now, i'd like to place it into a
namespace but when i do that, it seems
that the controls i refer to (ThatLabel)
are, do not exist in the current
context.
What is the reason for that and how can
i resolve the problem?
The only guess i have is that the class
begin partial, has other parts of it
somewhere and THAT OTHER part, declaring
and creating the actual control, gets
placed OUTSIDE the new namespace.
However, i haven't found "the rest" of
the code. How can i get to it?