Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Databinding on multiple drop downs...Databinding on multiple drop downs...
Previous
 
Next
New Post
6/10/2008 10:24 AM
 

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
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Databinding on multiple drop downs...Databinding on multiple drop downs...


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out