How can i access code behind methods from the radiobuttonlist insode the gridview below? Using code blocks is of some reason not allowed here..
<asp:GridView ID="gvChildren" runat="server" DataKeyField="ID">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:RadioButtonList runat="server" ID="rblAccess">
<asp:ListItem Value="0" Text="<%= Get("test") %>"></asp:ListItem>
<asp:ListItem Value="1" Text="<%= Get("test") %>">dfgdfg</asp:ListItem>
<asp:ListItem Value="2" Text="<%= Get("test") %>"></asp:ListItem>
</asp:RadioButtonList>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
I think this is not possible(Databinding expressions are only supported on objects that have a DataBinding event). You could set the Text in codebehind.
For example:
Codebehind: