0
this code will not pass the query string to default3.aspx on Image Button ..

我认为我的语法有一些错误,请帮我解决错误..在下面的代码中:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            ImageButton1.Attributes.Add("onClick", "window.showModalDialog('Default3.aspx?id='" + Label4.Text + ",'','dialogHeight: 400px; dialogWidth: 370px;');return false;")
        End Sub
4

1 回答 1

0

修改代码如下

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles   Me.Load
      ImageButton1.Attributes.Add("onClick", "window.showModalDialog('Default3.aspx?id=" + Label4.Text + "','','dialogHeight: 400px; dialogWidth: 370px;');return false;");
End Sub

希望对你有帮助...

于 2012-04-06T07:30:57.903 回答