andy_tigger

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

       string gameUrl = http://www.baidu.com

                string fileName = HttpUtility.UrlEncode("百度.url");

                context.Response.ContentType = "APPLICATION/OCTET-STREAM";
                context.Response.AddHeader("Content-Disposition", "attachment;filename=" + fileName);
                context.Response.Write("[InternetShortcut]\n");
                context.Response.Write("URL=" + gameUrl + "\n");
                context.Response.Write("IDList=\n");
                context.Response.Write("IconFile=http://www.7road.com/favicon.ico\n");
                context.Response.Write("IconIndex=1\n");
                context.Response.Write("[{000214A0-0000-0000-C000-000000000046}]\n");
                context.Response.Write("Prop3=19,2\n");
                context.ApplicationInstance.CompleteRequest();

posted on 2010-10-25 17:42  andy_tigger  阅读(228)  评论(0编辑  收藏  举报