Zcumbag
May 13th, 2005, 04:11 AM
Hi all,
I have a problem with a asp:HyperLink control.
it looks something like this:
.aspx-file
<asp:HyperLink runar=server id=idName></asp:HyperLink>
.aspx.cs-file
...
protected System.Web.UI.WebControls.HyperLink idName;
...
idName.Text="Waddever";
the problem is that a server error accurs on the line where I try to set the Text of the object. It says that "Object reference not set to an instance of an object"... which i suppose it's true.... but isn't it supposed to reference the item in my aspx-file?
how can i "reach" my hyperlink in my codebehind-file?
any input would be greatfully appriciated.
cheers.
I have a problem with a asp:HyperLink control.
it looks something like this:
.aspx-file
<asp:HyperLink runar=server id=idName></asp:HyperLink>
.aspx.cs-file
...
protected System.Web.UI.WebControls.HyperLink idName;
...
idName.Text="Waddever";
the problem is that a server error accurs on the line where I try to set the Text of the object. It says that "Object reference not set to an instance of an object"... which i suppose it's true.... but isn't it supposed to reference the item in my aspx-file?
how can i "reach" my hyperlink in my codebehind-file?
any input would be greatfully appriciated.
cheers.