| using System;
 using System.Collections;
 using System.Configuration;
 using System.Data;
 using System.Web;
 using System.Web.Security;
 using System.Web.UI;
 using System.Web.UI.HtmlControls;
 using System.Web.UI.WebControls;
 using System.Web.UI.WebControls.WebParts;
 public partial class Test : System.Web.UI.Page
 {
 protected void Page_Load(object sender, EventArgs e)
 {
 if (!Page.ClientScript.IsClientScriptIncludeRegistered("YUI"))
 Page.ClientScript.RegisterClientScriptInclude("YUI", path + "/build/yui/yui-min.js");
 if (!Page.ClientScript.IsClientScriptIncludeRegistered("CLINET"))
 Page.ClientScript.RegisterClientScriptInclude("CLINET", path + "/js/clinet.js");
 StringBuilder scriptBlock = new StringBuilder();
 scriptBlock.Append("<script type="text/javascript"><!--
 ");
 scriptBlock.Append("Demo.config={");
 scriptBlock.Append("sheng:'" + this.sheng.ClientID + "',");
 scriptBlock.Append("speciality:'" + this.specialityList.ClientID + "',");
 scriptBlock.Append("years:'" + this.yearList.ClientID + "',");
 scriptBlock.Append("times:'" + this.timesList.ClientID + "'");
 scriptBlock.Append("};");
 scriptBlock.Append("
 // --></script>");
 Page.ClientScript.RegisterClientScriptBlock(GetType(), "QualityAssessmentPlanCascadingDropDown", scriptBlock.ToString());
 
 }
 }
 
 这上面为主要代码,上面那段JS我实际写的请求的是一个WEBService ,你可以换一个aspx页面都行,
 
 还有一些后台处理的到数据的就没有贴出来了,每一个级联请求的后台都是返回一个对象数组 ,具体的解释就不用说了, 不懂的在讨论。。。
 (编辑:南平站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |