Hi,
The following sample shows a LinkButton in the HeaderTemplate of a Repeater
control.
The problem is that i'm not able to access the linkbutton in code (in the cs
file) as long as the linkbutton stays in the
repeater control - see the following line:
testLink.Comman dArgument = "just testing"; or testLink.Text = "Some new
text";
How do i dynamically change the properties of the LinkButton in runtime ??
Thank you in advance.
BR
Peter
Sample code:
<asp:Repeater id="dataRepeate r" runat="server">
<HeaderTemplate >
Header data
<table class="repeat_t able">
<tr id="rowHeadLine ">
<td id="fieldHeadLi ne">
<asp:LinkButt on
ID="testLink"
runat="server"
OnClick="testfu nc"
Text="hit me">
</asp:LinkButton>
</td>
</tr>
</HeaderTemplate>
<ItemTemplate >
...
The following sample shows a LinkButton in the HeaderTemplate of a Repeater
control.
The problem is that i'm not able to access the linkbutton in code (in the cs
file) as long as the linkbutton stays in the
repeater control - see the following line:
testLink.Comman dArgument = "just testing"; or testLink.Text = "Some new
text";
How do i dynamically change the properties of the LinkButton in runtime ??
Thank you in advance.
BR
Peter
Sample code:
<asp:Repeater id="dataRepeate r" runat="server">
<HeaderTemplate >
Header data
<table class="repeat_t able">
<tr id="rowHeadLine ">
<td id="fieldHeadLi ne">
<asp:LinkButt on
ID="testLink"
runat="server"
OnClick="testfu nc"
Text="hit me">
</asp:LinkButton>
</td>
</tr>
</HeaderTemplate>
<ItemTemplate >
...
Comment