Based on level of the user I would like to disable or make invisible a hyperlink to another page...
<ItemTemplate>
<TABLE><TR><TD>
<asp:HyperLink ID="mylink" ageUrl="images/arrow_right.gif" NavigateUrl='<%#"ReviewIt.aspx?task_no="+ DataBinder.Eval(Container.DataItem,"task_no"
+"&location_no="+DataBinder.Eval(Container.DataItem,"location_no"
%>' Target="_blank" Runat="server" Width="37" />
</TD></TR></TABLE>
</ItemTemplate>
I have tried to walk the object model with little luck.
HyperLink myhyper = new HyperLink();
myhyper=(HyperLink) DataGrid1.Controls[0].Controls[1].Controls[0].Controls[1];
myhyper.Visible=false;
Can anyone point me in the right direction... and should I code this in the itemcreated event or can it really be called from anywhere...
thanks in advance.... -wayno
<ItemTemplate>
<TABLE><TR><TD>
<asp:HyperLink ID="mylink" ageUrl="images/arrow_right.gif" NavigateUrl='<%#"ReviewIt.aspx?task_no="+ DataBinder.Eval(Container.DataItem,"task_no"
</TD></TR></TABLE>
</ItemTemplate>
I have tried to walk the object model with little luck.
HyperLink myhyper = new HyperLink();
myhyper=(HyperLink) DataGrid1.Controls[0].Controls[1].Controls[0].Controls[1];
myhyper.Visible=false;
Can anyone point me in the right direction... and should I code this in the itemcreated event or can it really be called from anywhere...
thanks in advance.... -wayno