|
Why I am getting the error:
BC30676: 'DataBinding' is not an event of 'System.Web.UI.WebControls.ListItem'.
for the code below?
<EditItemTemplate>
<asp:RadioButtonList id="rbGender" width="100" runat="server" >
<asp:listitem id="genderMale" runat="server" value="M" Selected='<%# "M" = DataBinder.Eval(Container.DataItem,"Sex") %>'>Male</asp:listitem>
<asp:listitem id="genderFemal" runat="server" value="F" Selected='<%# "F" = DataBinder.Eval(Container.DataItem,"Sex") %>'>Female</asp:listitem>
</asp:RadioButtonList>
|
|
|
We'd have to see the code-behind, particularly the delegate assigned to the control.
|
|
|
|
|
What exactly do you want to see in my code?
|
|
|
The event methods, and the delegates.
Just paste the section normally hidden by the "Web Form Designer generated code" #region comment.
What I'm expecting to see is something left over from your earlier attempts at creating the listitem tags.
<Added>
Did you resolve the problem? If so, please post your solution so this thread has some value.
|
|
|
|
|
|
|
|
|
|