Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Databinding on multiple drop downs...
Previous Previous
 
Next Next
New Post 6/10/2008 7:24 AM
User is offline lubatico
27 posts
10th Ranked


Databinding on multiple drop downs... 

Greetings, all.

I'm faced with a peculiar problem. I have created a form that enables an administrator to select an office location to a particular staff member.
All he has to do is chose the country from a drop down list, which automatically populates another drop down list containing the cities for that particular country.
Please note: this is not actually mandatory and null values may occur.

The problem happens when the administrator is trying to UPDATE this information.

I created an event that automatically loads a hidden variable with the value of the country dropdown. If it is null, then a " - select - " option will appear at the top.
So far, so good. The issue that I have is that I MUST databind the city id to the corresponding city drop down. This works fine as long as an office city already exists.
Or if the city is in the same country. The moment I change the country drop down (thus changing the city drop down) then it breaks, giving me the following error:

A critical error has occurred.
Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.

And, if the city value is empty, I get the following error:

A critical error has occurred.
'DIR_DutyStationID' has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value

Any suggestions?

Many, many thanks in advance!

 

L

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Databinding on multiple drop downs...
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Windsor Management Group
Fund Accounting Software for K12 Education.
Infinitevisions.com
Convert Visitors to Customers
In order to bring value to your users, we must first understand them. VIVIDSITES will help you build a custom web application and interactive marketing tools that your users will thank you for. We marry high-end creative with head banging technology to entertain and convert visitors into paying customers. Call 314.514.0505 or visit us at http://www.vividsites.com to find out how.
- V I V I D S I T E S -
Gearworx Web Hosting
As a premier provider of Web Hosting, Private/White Label hosting, Server Colocation, Dedicated Server, and other Managed Services, Gearworx offers an array of services designed to more effectively manage strategies driving businesses on the Web. Headquartered in Fremont, California our state of the art tier one data centers and distributed managed services environment enables Gearworx to offer your business enterprise level solutions through simplified processes.
Gearworx Web Hosting

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP