Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

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

 
 
yosri2005@gmail.com
Guest
Posts: n/a
 
      12-13-2007
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.
 
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
retrive preselected value in second drop down list from the first drop down list weiwei ASP .Net 0 01-05-2007 07:29 PM
Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control Owen Blacker ASP .Net Datagrid Control 1 07-21-2006 03:03 PM
Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control Owen Blacker ASP .Net Building Controls 1 07-21-2006 03:03 PM
"Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control" moi ASP .Net 0 03-09-2006 11:38 AM
Auto Drop down a Drop Down List xxbmichae1@supergambler.com Javascript 5 11-23-2005 01:35 AM



Advertisments