<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="YXShop.Web.membercenter.accountrun.Test" %>

<!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>无标题页</title>
    <link rel="stylesheet" href="../../admin/style/validator.css" type="text/css" />
    <script type="text/javascript" src="../../scripts/validate.js"></script>
    <link rel="stylesheet" href="../../admin/style/admin.css" type="text/css" />
    <script type="text/javascript" src="../../admin/scripts/public.js"></script>
    <script type="text/javascript" src="../../scripts/prototype.js"></script>
    
    <script language="javascript" type="text/javascript">
    function GetCity(controlid,code,value)
        {
            if (code.length>0){
             var control=$(controlid);
             var url="/admin/plugin/getcity.aspx?parentid="+code; 
             new Ajax.Request(
                url,
                {
                    method: 'get',
                    encoding: 'GBK',
                    onSuccess: function(transport) 
                    {
                        var contentjson=eval("("+transport.responseText+")"); 
                        control.options.length=0;
                        control.options.add(new Option("请选择","")); 
                        for(var i=0;i<contentjson.city.length;i++)
                        {
                            
                            control.options.add(new Option(contentjson.city[i].content,contentjson.city[i].code)); 
                            if(value==contentjson.city[i].code)
                            {
                                control.options[i+1].selected=true;
                            }
                        }
                    }
                }
            );
           }
        }
        window.onload=function(){
            
         <asp:Literal id="lblScript" runat="server"></asp:Literal>
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:DropDownList ID="ddlProvince" runat="server"></asp:DropDownList>
    <asp:DropDownList ID="ddlCity" runat="server"></asp:DropDownList>
    <asp:DropDownList ID="ddlBorough" runat="server"></asp:DropDownList>
    </div>
    </form>
</body>
</html>
