I have created a user control (ascx) called MyButton with a code
behind file.
I also have a main page (aspx) with a code behind file.
I want to do something like this in the main page
void Page_Load(object sender, EventArgs e)
{
MyButton button = new MyButton();
// or MyButton button = LoadControl("MyButton.ascx");
button.Text = "HI";
placeHolder.Controls.Add(button);
}
Button the MyButton class does not show up with intellisense. Since
there is not build command anymore for web projects, is it because it
is not build ? Could it be namespace related, it seems all namespace
entries are gone as well ?
-- Thanks, Andrew Taylor