you neednot a HyperLink control,the following code can open a word doc.you can also edit it.
Response.ContentType = "Application/x-msword";
string strFilePath="";
strFilePath ="d:\\Report.doc";
FileStream fs = new FileStream(strFilePath,FileMode.OpenOrCreate,FileAccess.Read);
Response.WriteFile(strFilePath,0,fs.Length);
fs.Close();
Response.ContentType = "Application/x-msword";
string strFilePath="";
strFilePath ="d:\\Report.doc";
FileStream fs = new FileStream(strFilePath,FileMode.OpenOrCreate,FileAccess.Read);
Response.WriteFile(strFilePath,0,fs.Length);
fs.Close();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货