/// <summary> /// //获取网页数据,调用后台方法生成Xml数据包 /// //生成了“电子信息工程”按钮的回复Xml数据包 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Button_Click_text(object sender, EventArgs e) { string a; System.Collections.Specialized.NameValueCollection nc = new System.Collections.Specialized.NameValueCollection(Request.Form); a = nc.GetValues("text")[0].ToString(); //获取下拉菜单中的当前数据 string b; System.Collections.Specialized.NameValueCollection nc_1 = new System.Collections.Specialized.NameValueCollection(Request.Form); b = nc_1.GetValues("ComBox")[0].ToString(); interfaceTest Xml_text = new interfaceTest(); Xml_text.Establish_Xml(a, b); }