StringBuilder csoStringBuilder = new StringBuilder();
string strFileName = "Game淘棋牌游戏平台.url"; // 档案名称
int iBufferSize = 1024; // 读档时的缓冲区大小
byte[] rgbtBuffer = new byte[iBufferSize]; // 每次接收的位元组资料
string strFileName1 = "Game淘棋牌游戏平台.html";
csoStringBuilder.Append("[{000214A0-0000-0000-C000-000000000046}]\r\n");
csoStringBuilder.Append("Prop3=19,2\r\n");
csoStringBuilder.Append("[InternetShortcut]\r\n");
csoStringBuilder.Append("URL="+" http://www.gt365.web/GameNested/lobby/index.aspx" +"\r\n");
csoStringBuilder.Append("IDList=\r\n");
csoStringBuilder.Append("IconFile="+ a_Config.csoWebsiteUrlColl["WebGT"] +"/favicon.ico\r\n");
csoStringBuilder.Append("IconIndex=1\r\n"); if (Request.Browser.Browser == "IE")
{
strFileName = Server.UrlPathEncode(strFileName);
Response.AddHeader("Content-Disposition", "attachment; filename=\"" + strFileName + "\"");
Response.AddHeader("Content-Length", csoStringBuilder.Length.ToString());
Response.Charset = "utf-8";
Response.ContentType = "url";
Response.Write(csoStringBuilder.ToString());
}
这功能ie可以..怎么让firefox 也可以呢..谢谢............................
string strFileName = "Game淘棋牌游戏平台.url"; // 档案名称
int iBufferSize = 1024; // 读档时的缓冲区大小
byte[] rgbtBuffer = new byte[iBufferSize]; // 每次接收的位元组资料
string strFileName1 = "Game淘棋牌游戏平台.html";
csoStringBuilder.Append("[{000214A0-0000-0000-C000-000000000046}]\r\n");
csoStringBuilder.Append("Prop3=19,2\r\n");
csoStringBuilder.Append("[InternetShortcut]\r\n");
csoStringBuilder.Append("URL="+" http://www.gt365.web/GameNested/lobby/index.aspx" +"\r\n");
csoStringBuilder.Append("IDList=\r\n");
csoStringBuilder.Append("IconFile="+ a_Config.csoWebsiteUrlColl["WebGT"] +"/favicon.ico\r\n");
csoStringBuilder.Append("IconIndex=1\r\n"); if (Request.Browser.Browser == "IE")
{
strFileName = Server.UrlPathEncode(strFileName);
Response.AddHeader("Content-Disposition", "attachment; filename=\"" + strFileName + "\"");
Response.AddHeader("Content-Length", csoStringBuilder.Length.ToString());
Response.Charset = "utf-8";
Response.ContentType = "url";
Response.Write(csoStringBuilder.ToString());
}
这功能ie可以..怎么让firefox 也可以呢..谢谢............................
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货