IE11
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
If Grid1.SelectedRowIndex < 0 Then
Alert.Show("请选择!")
Exit Sub
End If
Session.Add("id", Grid1.Rows(Grid1.SelectedRowIndex).Values(1))
Session.Add("mc", Grid1.Rows(Grid1.SelectedRowIndex).Values(3))
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()) '运行到这就报图上的错误
End Sub
Protected Sub Grid1_RowDoubleClick(ByVal sender As Object, ByVal e As FineUI.GridRowClickEventArgs) Handles Grid1.RowDoubleClick
If Grid1.SelectedRowIndex < 0 Then
Alert.Show("请选择!")
Exit Sub
End If
Session.Add("id", Grid1.Rows(Grid1.SelectedRowIndex).Values(1))
Session.Add("mc", Grid1.Rows(Grid1.SelectedRowIndex).Values(3))
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference())
End Sub
在按钮是 PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()) 报错但是在表格双击是不报错
|