this code will not pass the query string to default3.aspx on Image Button ..
I think there is some error in my syntax, please help me to sort out the error.. in code below :
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
modify code as below
Hope this will help you…