日期:2014-05-17 浏览次数:20387 次
<script language="javascript" type="text/javascript"> $(function(){ $("#Button1").click(function(){ $.post("text.aspx",{Action:"post",catagory:$("#selectType1").val()}, function(data){ $("#mydiv").html( data ); },"text"); }); }); </script>
<form id="form1" runat="server"> <select id="selectType1" name="selectType1" style="width: 100px;"> <option value="已报班">已报班</option> <option value="未报班">未报班</option> <option value="全部">全部</option> </select> <div><input id="Button1" type="button" value="提交" style=" float:left;"/></div> <div id="mydiv"></div> </form>
protected void Page_Load(object sender, EventArgs e) { [color=#800000][b]string catagory = Request.Form[/b]["catagory"][/color]; Response.ContentType = "text/plain"; if(catagory !=){ Context.Response.Write("success"); }else{Context.Response.Write("fail"); } Response.End(); }