473,386 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Drop down list error: "Databinding methods such as Eval(), XPath(),and Bind() can only be used in the context of a databound control."

Hello,

I'm sure many of you have seen the error message in the subject. I
found quiet a few posts on the web regarding this issue, but the ones
I saw mainly tackle this issue when you have a drop-down list
depending on another drop-down list within a form view. This is not
what I'm trying to do, so I didn't know how to apply the solutions I
found to my problem.

I have a formview which inserts items into a database table via an
ObjectDataSource. I have a drop-down list within another formview that
uses the same ObjectDataSource to read from the same table and display
items. So, the way I want it to work is that when I insert something
using FormView1, I start seeing items in the drop-down list in
FormView2.

The error occurs as soon as I try to insert in FormView1, and after
debugging the application, I discovered the error is caused by the
drop-down list.

Could someone please help me?

Thanks.
Dec 13 '07 #1
0 2323

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Grant Edwards | last post by:
I'm trying to figure out how to sort a list, and I've run into a problem that that I have tripped over constantly for years: where are the methods of basic types documented? The only thing I can...
1
by: Suud Orarry | last post by:
Hi All, I am trying to build a UI component. The component is a list control which has other controls in it. For example I have user control which consists of textboxes and buttons and I need...
1
by: Steve | last post by:
I have application which displays dialog containing CListCtrl control. The OnTimer message handler updates values in this list control. In case if there are more items then visible area of list...
2
by: Steve | last post by:
Is there simple way to force list control always have scroll bar, even if the list control is not full? Thanks
0
by: Kathy Burke | last post by:
Hi, will try to make this short and clear! (1) I have a list control which is populated by strings as follows (leaving out declarations, etc., for brevity): Dim strListItem As String = "GRN: "...
1
by: Joey Liang via DotNetMonster.com | last post by:
Hi all, I am new to ASP.NET, i have met some problems in binding data from a table of database to a dropdown list control. Anyone knows how to do it?if possible can rougly write the codes or any...
2
by: ECVerify.com | last post by:
I am trying to make a property that creates a drop down control that I can fill with string options..."test1", "test2", "test2" I can make one with True false as shown here but I cant figure out...
1
by: Khai Doan | last post by:
Perl has a concept of list / scalar context. Is there such a list context in javascript ? Thanks Khai
4
by: jtertin | last post by:
I have a drop-down control that is being populated by an entire table (not a query). There are NULL values in the table which appear as blank spaces in the drop down. How can I format the drop...
5
osfreak
by: osfreak | last post by:
Hi, Am using a list control in my application, and i need to change the colour of one or more rows on users request(thro a push button). Somebody pls help me , how it can be done?? P.s:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.