页面里有一个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>
应该怎么做啊

解决方案 »

  1.   

    你为什么不把调用迅雷的放进OnDownloadClick_Simple 里面呢
      

  2.   

    OnDownloadClick_Simple 这个方法是你自己写的么?你既然能获取到<%=ThunderEncode(Code)%>,那么你的后台也就有这个,你可以去后台写,一个执行这个,再开个线程调迅雷
      

  3.   

    或者说写后台脚本,先调用迅雷,再执行OnDownloadClick_Simple
      

  4.   

    <a href="abc.aspx" target="_blank" onclick="javascript:window.open('bcd.aspx','_blank','')">是这样不</a>
      

  5.   

    OnDownloadClick_Simple
    这个东西也不是我写的!
      

  6.   

    没有这个必要
    <a href="javascript:click()" onclick="return OnDownloadClick_Simple(this,2,4);" click()为你的函数
      

  7.   

    添加Download.aspx页。FileStream f= new FileStream("", FileMode.Open);  
    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();   参考