单击按钮时我打开一个新表单。但是这种形式开放,只有当第二次点击按钮时。我想在第一次点击按钮时打开它。 怎么做?
If Not Session("CheckAvailableItem") Is Nothing Then
Session("CheckAvailableItem") = Nothing
Session("CheckAvailableItem") = dt_detail
ChkAvl.ClientSideEvents.Click = "function(s, e) { e.processOnServer = window.open('PreOrderItemAvailability.aspx' , '_blank', 'toolbar=yes, scrollbars=yes, resizable=no, width=700px, height=500px;') }"
Else
Session("CheckAvailableItem") = dt_detail
ChkAvl.ClientSideEvents.Click = "function(s, e) { window.open('PreOrderItemAvailability.aspx', '_blank', 'toolbar=yes, scrollbars=yes, resizable=no, width=700px, height=500px;') }"
End If