473,395 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

ajax extension for cascading dropdown

I have problems updating the image on the page.

<script language="javascript" type="text/javascript">
function pageLoad(sender, args)
{

$find("cddCountry").add_selectionChanged(onCCSChan ged);

}

function onCCSChanged()
{

//change the images based on the selected value.

imgFlag.ImageUrl = "~/images/flags/" + ddlCountry.SelectedValue + ".gif";
}

</script>
<div align="center">

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode ="Conditional">
<ContentTemplate>

Country:

<img src="<%= Page.ResolveUrl("~/images/flags/" + ddlCountry.SelectedValue + ".gif") %>" name="imgFlag" id="imgFlag" alt=""/>

<br />

<asp:DropDownList style="position: static" Font-Size="Smaller" Font-Bold="true" Width="190px" ID="ddlCountry" runat="server"></asp:DropDownList>

<ajaxToolkit:CascadingDropDown ID="cddCountry" runat="server"

TargetControlID="ddlCountry"

Category="Country"

PromptText="Choose a Country"

LoadingText="Loading Countries..."

ServicePath="../LocationService.asmx"

ServiceMethod="GetCountries" />
Jun 27 '08 #1
0 1047

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Colin Walls | last post by:
I have been asked to produce a web catalogue of services and associated options, this eventually will be used for ordering the services. My initial thought was to use a set of cascading drop...
2
by: Sam | last post by:
A) Destination Table with 4 Fields. 1) Last Name 2) First Name 3) State 4) Zip Code. B) Look up table State/Zip Code with 2 Fields
0
by: robert | last post by:
I am using the new beta 2 ajax control toolkit. When using the cascading drop-down obviously the items in the lists are generated through javascript, I would like to access these items serverside...
0
by: acadam | last post by:
Hi, I am trying to use cascading dropdown but I have some problems. The firts dropdown is ok, it's filled regularly... but the second dropdown is still disabled!! Why? I tried to start my...
1
Fuhrer
by: Fuhrer | last post by:
Hi all, i have a problem implementing Cascading DropDown,in my webpage. i'm creating it in"test.aspx": <cc1:CascadingDropDown .......></cc1:CascadingDropDown> in my "test.aspx.cs" page: i'm...
5
by: phpachu | last post by:
Hi, I hav a problem with Ajax and PHP. I had populate a dropdown w.r.t to another dropdown using ajax. But the problem is I hav to list some data on the selected index change that newly...
3
kcdoell
by: kcdoell | last post by:
I have 5 cascading combo boxes on a form. Below is a sample of my vb in the first combo box: Private Sub CboDivision_AfterUpdate() 'When the Division is selected, the appropriate Segment...
8
by: sheldonlg | last post by:
I am still improving my AJAX and I ran into something that I'm not sure how to do. I will have a page called where I will have a dropdown list at the top and a large display at the bottom. The...
22
by: sheldonlg | last post by:
I am looking for a clean solution to a problem that I solved in, what I call, a "dirty" way. Here is what I want to do. I have a dropdown list. Clicking on an item in the dropdown list invokes...
3
by: Cirene | last post by:
I have a simple page - 2 dropdowns, 2 textboxes. 1 set of dropdown/textbox is in the updatepanel. 1 set of dropdown/textbox is not. When I select a dropdown the textbox is updated with teh...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.