B
Bennett Haselton
I create a new Web Form and drag a new Button onto it from the Web
Forms toolbox tab, and then I drag a new instance of the UserPost user
control that I created, by dragging and dropping the "UserPost.ascx"
file listing from Solution Explorer. Both controls show up on the Web
Form. But when I switch to the codebehind page, there is only a
declaration for Button1:
protected System.Web.UI.WebControls.Button Button1;
and not one for UserPost1. Is this a bug? A feature? I'm not too
lazy to type the declaration in myself, but anomalies like this are
sometimes a sign that I'm doing something wrong...
-Bennett
Forms toolbox tab, and then I drag a new instance of the UserPost user
control that I created, by dragging and dropping the "UserPost.ascx"
file listing from Solution Explorer. Both controls show up on the Web
Form. But when I switch to the codebehind page, there is only a
declaration for Button1:
protected System.Web.UI.WebControls.Button Button1;
and not one for UserPost1. Is this a bug? A feature? I'm not too
lazy to type the declaration in myself, but anomalies like this are
sometimes a sign that I'm doing something wrong...
-Bennett