PC Review


Reply
Thread Tools Rate Thread

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

 
 
jobs
Guest
Posts: n/a
 
      26th Sep 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
Rate This Thread
Rate This Thread:

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
Databinding expressions are only supported on objects that have a =?Utf-8?B?ZGJhMTIz?= Microsoft C# .NET 0 29th Aug 2006 10:14 PM
Concatenating two databinding expressions - how?? sydney.luu@gmail.com Microsoft ASP .NET 4 29th Mar 2006 03:02 PM
'&' in DataBinding expressions Vik Microsoft ASP .NET 1 21st Apr 2004 05:31 PM
Databinding Expressions? Chike J. Okor Microsoft Dot NET 1 8th Oct 2003 09:09 AM
Databinding Expressions? Chike J. Okor Microsoft Dot NET Framework Forms 1 8th Oct 2003 09:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:06 PM.