codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  DataBinding  sardinka at 13:15 on Wednesday, November 17, 2004
 

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>



  Re: DataBinding  tgreer at 14:36 on Wednesday, November 17, 2004
 

We'd have to see the code-behind, particularly the delegate assigned to the control.



  Re: DataBinding  sardinka at 15:11 on Wednesday, November 17, 2004
 

What exactly do you want to see in my code?

  Re: DataBinding  tgreer at 15:49 on Wednesday, November 17, 2004
 

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.









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: Print and print preview file on the website without using the File - Print on the IE
•  Re: ASP.NET web controls
•  Re: JavaSript Problem In Mac Safari Browser
•  Re: DHTML div positionning Problem
•  Convert script to NS6 compatible - Please Help!
•  Print .doc file from the website using System.Diagnostics.Process
•  Re: Fullscreen code
•  Re: iframe targeting
•  Excel n ASP


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005