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  |  

telerik -- supercharge your DNN websites
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
 


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.

 


DNNhost Scandinavia
SUPER fast QuadCore DELL servers, MSSQL servers, DotNetPanel, daily backup, Check out our customers websites
DNNhost.dk
Personify Design, Inc.
Seattle-based Personify Design has developed customized DotNetNuke websites for a wide range of customers to meet many different types of needs, including distributed authorship across thousands of pages to integrated Verisign e-commerce capabilities.
www.personifydesign.com
DNN Outsourcing
50% more affordable services comparing to Western Europe and US: Custom DotNetNuke module development, skins, consulting, maintainence... Over 15.000 working hours of experience in custom DotNetNuke Solutions development, 8 years experience in outsourcing, excellent references!
www.dnnoutsourcing.com

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