Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Databinding expressions are only supported on objects that have a DataBinding event

Reply
Thread Tools

Databinding expressions are only supported on objects that have a DataBinding event

 
 
jobs
Guest
Posts: n/a
 
      09-25-2007
I have this function that checks the current status of checkbox. It
works great on almost all my controls. I use to determine if I will
make certain textboxes and labels visible.

However, when I attempt to use it to disable certain items in a
dropdownlist, I get this error:

Parser Error Message: Databinding expressions are only supported on
objects that have a DataBinding event.
System.Web.UI.WebControls.ListItem does not have a DataBinding event.


I'm trying to use it as follows:

<asp:ListItem Selected="True" Value="">None</asp:ListItem>
<asp:ListItem Value="RT-BUYNOW"
>BUY NOW $3.50 MORE MINUTES</asp:ListItem>

<asp:ListItem Value="RT-RECHARGE" Enabled='<%# CashorCredit()%>'>$20
OFF NEXT RECHARGE</asp:ListItem>
</aspropDownList><br />




It's works when I use here:

<asp:TextBox ID="cityTextBox" maxlength="20" Visible='<%#
CashorCredit()%>' runat="server" SkinID="Retailer"
Text='<%# Bind("city") %>' Width="149px" />
<br>

Thanks for any help or information.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in running a basic code in python 3.3.0 that includes HTML file Satabdi Mukherjee Python 1 04-04-2013 07:48 PM
Session_OnEnd event is supported only the in-process session-statemode John H ASP .Net 0 06-24-2009 11:44 AM
class objects, method objects, function objects 7stud Python 11 03-20-2007 06:05 PM
My boss so cheap!! Our ASP.NET only have 256MB only! How to release request used memory when Page Unload() event raise? ABC ASP .Net 7 01-13-2006 03:23 PM
Add custom regular expressions to the validation list of available expressions Jay Douglas ASP .Net 0 08-15-2003 10:19 PM



Advertisments