PC Review

Thread Tools Rate Thread

Databinding Problem with Dropdownlist with Multiview Control in VB

Posts: n/a
      9th Jan 2006
I have a page that has multiview control that has two dropdown lists on it.
the dropdown controls ARE NOT inside of the multiview. Each drop down is
bound using its own sqldatasource conrtol. The multiview is declared below
the dropdown controls on another portion of the page.

so, here is the progression..

1) select a category from drowdown one that is bound using sqldatasource1
2) dropdown2 is populated based on selection or dropdown1 and sqldatasource2
3) use the ondatabound property for drowdown2 to add an item to the top of
the list (dropdown2.items.insert(0, "Select One"))

Here is the problem....

if the sqldatasources are not defined within the multiview, the ondatabound
function actually fires multiple times. It then results in the following

"Input string was not in a correct format. "

I ran the program in debug mode, and noticed that my callback funtion was
entered two times for some reason, which means that the drowdown2 was bound

I struggled for hours before i figured out what was going on. To solve the
problem, I simply put the sqldatasources within the multiview tags, and it
work as planned. This is weird since the dropdown lists are declared before
the multiview and are not really associated with that control.

Any ideas why this is happening?
Is this a bug?
Reply With Quote

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
Accessing TextBox.Text from MultiView.ActiveIndex 0 in MultiView.ActiveIndex 1 Andy B Microsoft ASP .NET 0 29th Dec 2008 05:56 PM
Regarding validation summary control in asp:MultiView control iHavAQuestion Microsoft ASP .NET 0 28th Apr 2008 06:45 PM
Menu control with Target MultiView Control? Yin99 Microsoft ASP .NET 1 20th Aug 2007 02:28 PM
Menu Control with Multiview Control ??? Brad Isaacs Microsoft ASP .NET 5 9th Feb 2007 05:08 PM
databinding a Dropdownlist to another dropdownlist tshad Microsoft ASP .NET 8 19th Oct 2005 11:00 PM




All times are GMT +1. The time now is 06:31 AM.