页面里有一个lnkbtn,我点击该控件时要同时触发下面的链接:
<a href="#" onclick="return OnDownloadClick_Simple(this,2,4);" oncontextmenu="ThunderNetwork_SetHref(this)"
style="color: #0000CC" thunderhref="<%=ThunderEncode(Code)%>" thunderpid="57029" thunderrestitle="" thundertype="">迅雷专用高速下载</a></span>
应该怎么做啊
<a href="#" onclick="return OnDownloadClick_Simple(this,2,4);" oncontextmenu="ThunderNetwork_SetHref(this)"
style="color: #0000CC" thunderhref="<%=ThunderEncode(Code)%>" thunderpid="57029" thunderrestitle="" thundertype="">迅雷专用高速下载</a></span>
应该怎么做啊
解决方案 »
- 利用Excel.Application导出excel数据,如何判断用户点击的是、否、还是取消哪个按钮?
- ConnectionString 属性尚未初始化
- SQL 语句动态写法 ?在线等
- 在ASP.NET(C#)中,如何用Session读取数组?在线等.....
- delphi开发activex控件,在.net中应用的问题
- 有三个DataSet,要把三个DataSet重的数据信息读出来,放进一个DataTable或者DataSet里面去,怎么实现呢
- 如何在DATAGRID输出的连接中规定窗口的大小等
- 关于服务器超时的问题
- 使用DataGrid时,如需将某列限定显示字数,当鼠标移动到该列上会显示出全部的内容,该怎么做?
- ajax技术问题
- 前端技术
- ASPXGridview用GetSelectedFieldValues获取不到当前行
这个东西也不是我写的!
<a href="javascript:click()" onclick="return OnDownloadClick_Simple(this,2,4);" click()为你的函数
byte[] buffer = new byte[f.Length];
f.Read(buffer, 0, buffer.Length);
f.Close();
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Disposition", "attachment; filename=" + HttpUtility.UrlEncode("", System.Text.Encoding.UTF8));
Response.BinaryWrite(buffer);
Response.Flush();
Response.End(); 参考