最近因为要开发广告制作工具,自动生成广告流,需要获取第三方服务器上的文件资源,经过摸索,从这次经历中记录下。 FtpWebRequest
reqFtp;WebResponse response = null;//获取文件夹信息reqFtp =
(FtpWebRequest)WebRequest.Cr...
分类:
其他好文 时间:
2014-04-30 02:52:23
阅读次数:
519
要将Servlet中的
response.setContentType("text/html;charset=utf-8")这行代码放在 PrintWriter out =
response.getWriter()之前。
分类:
Web程序 时间:
2014-04-29 23:03:34
阅读次数:
549
1. 打开新的窗口并传送参数:
传送参数:response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>")
接收参数:string a = Reque....
分类:
其他好文 时间:
2014-04-29 22:53:14
阅读次数:
571
{使用一般处理程序动态生成验证码}1.新建WebSite项目,添加一般处理程序命名为yzm.ashx,添加如下代码:
public void ProcessRequest(HttpContext context) {
//将context.Response.ContentType = "text/p...
分类:
Web程序 时间:
2014-04-29 18:33:35
阅读次数:
501
一、设置页面缓存1、直接在页面上用声明来缓存页面2、使用服务端方法://将Cache-Control标头设置为HttpCacheAbility值Response.Cache.SetCacheability(HttpCacheability.Public);//将页面的绝对过期时间Response.C...
分类:
其他好文 时间:
2014-04-27 23:02:18
阅读次数:
456