省市的数据通过服务取值后缓存于服务器缓存DataSet的table1,table2表中其中table1有所有省份的数据,table2中有所有省份下的县市数据并与table1中ID关联问:怎么不刷新整页的情况下选择"省份"后绑定相应的"县市"数据
望能详细说明谢谢
望能详细说明谢谢
解决方案 »
- cache的问题
- detailsview添加与更新数据库记录的问题
- #region 在从C#转到VB.NET后,语句出错了,?
- 关于Windows SharePoint Services的快速启动栏宽度的问题 加急!!!
- asp.net 1.0 升级到 2.0 后,以前的1.0软件项目会否受到影响?
- 请教:我在数据库里定义了一个基本的字段为网站的名称。然后我想每个网页里都调用这个名称给<title>。应该怎么给title赋值呢?谢谢!
- 为什么。。我的下载对话框,会出现2次呢????
- 《asp.net办公自动化系统开发实例导航》
- 简单问题,从html控件到web控件
- 这个问题有点难度,关于DataList显示图片问题,请各位帮忙
- repeater嵌套repeater
- 关于同个命名空间中类调用的问题
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<asp:DropDownList ID="DropDownList1" runat="server" Width="200px" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
<asp:ListItem Value="1" Text="1"></asp:ListItem>
<asp:ListItem Value="2" Text="2"></asp:ListItem>
<asp:ListItem Value="3" Text="3"></asp:ListItem>
<asp:ListItem Value="4" Text="4"></asp:ListItem>
</asp:DropDownList>
<br />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:DropDownList ID="DropDownList2" runat="server" Width="200px">
<asp:ListItem Value="1" Text="1"></asp:ListItem>
<asp:ListItem Value="2" Text="2"></asp:ListItem>
<asp:ListItem Value="3" Text="3"></asp:ListItem>
<asp:ListItem Value="4" Text="4"></asp:ListItem>
</asp:DropDownList>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="DropDownList1" EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>后台:using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;namespace JavaScript
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{ } protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList2.SelectedValue = DropDownList1.SelectedValue;
}
}
}