Forums

This topic is locked

Select Menu to Display All Records or Specific one

Posted 30 Dec 2007 04:22:09
1
has voted
30 Dec 2007 04:22:09 Saad Sham posted:
I have two tables Country (countryID, name), City (cityID, name, countryID)

I have a dynamic Select Box (populated with all countries Table) in addition to a Static Option All.

On the action page I want to display either Cities of All Countries (in case All was selected) OR Cities of a Specific Country (depends on selection).

How can I implement the action page using Server Behaviors. Its the Option All I am stuck on while displaying Cities based on passed foreign key is not a problem. The problem is to have both in action page.

Edited by - saadshams on 30 Dec 2007 04:25:27

Reply to this topic