怎样屏蔽get提交,只允许post提交 怎样屏蔽get提交,只允许post提交怎么配制?还是要在代码中实现? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if(Request.RequestType=="GET") return; 参考一下下面的代码吧,也许有帮助, HttpWebRequest HttpWReq = (HttpWebRequest)WebRequest.Create(url); HttpWReq.Method="POST"; HttpWReq.ContentType="application/x-www-form-urlencoded"; byte[] buf = System.Text.Encoding.UTF8.GetBytes(param); HttpWReq.ContentLength=buf.Length; //HttpWReq.KeepAlive = false; Stream reqStream=HttpWReq.GetRequestStream(); reqStream.Write(buf,0,buf.Length); reqStream.Close(); My97DatePicker怎样设置,让其只显示年份 mschart能否画浓度分布图? .net orm框架的原理 SlideShowExtender使用时出现脚本错误 LINQ to SQL——GridView无法显示数据,数据库无法连接! 服务器上无法显示asp.net页面 关于 input file 控件 多语言问题 服务端控件click问题! 求URL重写的教程链接 我在一个 listBox(ID为 lbxEmployees)的OnSelectedIndexChanged事件中写下如下代码: 请问这变量名如何赋值? 各位做网站的大侠们,来看一下吧!!急
return;
HttpWebRequest HttpWReq = (HttpWebRequest)WebRequest.Create(url);
HttpWReq.Method="POST";
HttpWReq.ContentType="application/x-www-form-urlencoded";
byte[] buf = System.Text.Encoding.UTF8.GetBytes(param);
HttpWReq.ContentLength=buf.Length;
//HttpWReq.KeepAlive = false;
Stream reqStream=HttpWReq.GetRequestStream();
reqStream.Write(buf,0,buf.Length);
reqStream.Close();