这样的Link变量的值不能传递给下一条语句中的Link,也就是说  Response.Write("</Script>window.open('link');</Script>")这条语句中的Link变量系统提示没有定义。
怎样才能做到把Link变量的值传过来。谢谢了!
Public Sub ImageButton_Command(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.CommandEventArgs)
    Dim link As String = CType(e.CommandArgument, String)
    Response.Write("</Script>window.open('link');</Script>")

解决方案 »

  1.   

    Response.Write("</Script>window.open('"+ "变量的值" +"');</Script>")
      

  2.   

    string  strid;
    strid="01";
    Response.Write("</Script>window.open('ss.aspx?id="+ strid +"','_blank','');</Script>")
      

  3.   

    Public Sub ImageButton_Command(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.CommandEventArgs)
        Dim link As String = CType(e.CommandArgument, String)
        Response.Write("</Script>window.open('" + link + "');</Script>")