<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default3.aspx.vb" Inherits="Default3" %>
|
|
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
|
Namespace="System.Web.UI" TagPrefix="asp" %>
|
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
<head runat="server">
|
<title>Change</title>
|
<link rel="stylesheet" type="text/css" href="/x/Styles.css" />
|
</head>
|
<body>
|
<form id="form1" runat="server">
|
|
<script type="text/javascript">
|
function GetRadWindow()
|
{
|
var oWindow = null;
|
if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
|
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz az well)
|
return oWindow;
|
}
|
|
</script>
|
|
<div>
|
<asp:ScriptManager ID="ScriptManager1" runat="server">
|
</asp:ScriptManager>
|
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
|
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
|
<asp:Literal ID="Literal1" runat="server"></asp:Literal>
|
<table class="window">
|
<tr>
|
<td>
|
Enter an Organization Code<br />
|
<asp:TextBox ID="txtID" runat="server">
|
</asp:TextBox>
|
<br />
|
<br />
|
<hr noshade="noshade" size="1px" />
|
OR
|
<hr noshade="noshade" size="1px" />
|
<br />
|
<!--Choose a State<br />-->
|
<telerik:RadComboBox ID="RadComboBox1" runat="server" Width="200px" OnClientSelectedIndexChanging="LoadCities"
|
OnItemsRequested="RadComboBox1_ItemsRequested" />
|
<br />
|
<br />
|
<!--Choose a City<br />-->
|
<telerik:RadComboBox ID="RadComboBox2" runat="server" Width="200px" OnClientSelectedIndexChanging="LoadAffs"
|
OnClientItemsRequested="ItemsLoaded" OnItemsRequested="RadComboBox2_ItemsRequested" />
|
<br />
|
<br />
|
<!--Choose an Affiliate Organization<br />-->
|
<telerik:RadComboBox ID="RadComboBox3" runat="server" Width="200px" OnClientItemsRequested="ItemsLoaded"
|
OnItemsRequested="RadComboBox3_ItemsRequested" />
|
<br />
|
<br />
|
<asp:Button ID="btnSubmit" runat="server" Text="Submit" />
|
<br />
|
<br />
|
Can't find the group you're looking for? <a href="/x.aspx">
|
Click here</a> to learn how you can refer a group for Affiliate support.
|
</td>
|
</tr>
|
</table>
|
</telerik:RadAjaxPanel>
|
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
|
|
<script type="text/javascript">
|
//global variables for the countries and cities comboboxes
|
var cityCombo;
|
var citiesCombo;
|
|
function pageLoad()
|
{
|
// initialize the global variables
|
// in this event all client objects
|
// are already created and initialized
|
cityCombo = $find("<%= RadComboBox2.ClientID %>");
|
affCombo = $find("<%= RadComboBox3.ClientID %>");
|
}
|
|
function LoadCities(combo, eventArqs)
|
{
|
var item = eventArqs.get_item();
|
cityCombo.set_text("Loading...");
|
affCombo.clearSelection();
|
|
// if a continent is selected
|
if (item.get_index() > 0)
|
{
|
cityCombo.requestItems(item.get_value(), false);
|
}
|
else
|
{
|
cityCombo.set_text(" ");
|
cityCombo.clearItems();
|
|
affCombo.set_text(" ");
|
affCombo.clearItems();
|
}
|
}
|
|
function LoadAffs(combo, eventArqs)
|
{
|
var item = eventArqs.get_item();
|
|
affCombo.set_text("Loading...");
|
affCombo.requestItems(item.get_value(), false);
|
}
|
|
function ItemsLoaded(combo, eventArqs)
|
{
|
if (combo.get_items().get_count() > 0)
|
{
|
// pre-select the first item
|
combo.set_text(combo.get_items().getItem(0).get_text());
|
combo.get_items().getItem(0).highlight();
|
}
|
combo.showDropDown();
|
}
|
</script>
|
|
</telerik:RadScriptBlock>
|
</div>
|
</form>
|
</body>
|
</html>
|
|