P
Prince
I have strange problem. If in Design Mode and I drag a
Web Server Control onto the form, Visual Studio
automatically declares the control for me in the code
behind page.
However, if I'm working in HTML mode and I manually enter
the the Web Server Control, nothing is written in the
code behind page. If I declare the control myself and
attempt to use it, I get an error stating something
like, "ojbect not ininialize".
I have a DataList control on my page and inside the
<ItemTemplate> I inserted (by typing) a <asp:Label ID="x"
runat="server" />. I then declared the label myself
inside the Code Behind Page as:
protected System.Web.UI.WebControls.Label x;
if I then try to set the Text property of the label, I
get the error mentioned above. Can someone please help
me out here and first explain what is going on then give
me the solution or at least where I can find the solution.
thanks,
Prince
Web Server Control onto the form, Visual Studio
automatically declares the control for me in the code
behind page.
However, if I'm working in HTML mode and I manually enter
the the Web Server Control, nothing is written in the
code behind page. If I declare the control myself and
attempt to use it, I get an error stating something
like, "ojbect not ininialize".
I have a DataList control on my page and inside the
<ItemTemplate> I inserted (by typing) a <asp:Label ID="x"
runat="server" />. I then declared the label myself
inside the Code Behind Page as:
protected System.Web.UI.WebControls.Label x;
if I then try to set the Text property of the label, I
get the error mentioned above. Can someone please help
me out here and first explain what is going on then give
me the solution or at least where I can find the solution.
thanks,
Prince