P
Peter Larsen [CPH]
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.CommandArgument = "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="dataRepeater" runat="server">
<HeaderTemplate>
Header data
<table class="repeat_table">
<tr id="rowHeadLine">
<td id="fieldHeadLine">
<asp:LinkButton
ID="testLink"
runat="server"
OnClick="testfunc"
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.CommandArgument = "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="dataRepeater" runat="server">
<HeaderTemplate>
Header data
<table class="repeat_table">
<tr id="rowHeadLine">
<td id="fieldHeadLine">
<asp:LinkButton
ID="testLink"
runat="server"
OnClick="testfunc"
Text="hit me">
</asp:LinkButton>
</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
...