Drop down list error: "Databinding methods such as Eval(), XPath(),and Bind() can only be used in th

Y

yosri2005

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top