我有一个gridview
,其中有2列,比如Status
和View
JavaScript的两个事件触发在同一时间的GridView
以下是我的js代码: -
function UltraWebGrid1_Select(sender, records) {
for (var i = 0; i < records.length; i++) {
var record = records[i];
if (record.Status == "Status") {
window.open('FrmInwardNextAction.aspx?Inward_Mkey=' + record.mkey + "&View=N&Status=" + record.Status + "&IWNO=" + record.Doc_No, '_blank', 'height=670,width=1000,resizable=yes,top=0,left=0,scrollbars=yes');
}
if (record.View == "View") {
window.open('InwardDocDetails.aspx?Key=' + record.mkey + "&View=Y&Status=" + record.Status + "&IWNO=" + record.Doc_No, '_blank', 'height=700,width=1020,resizable=yes,top=0,left=0,scrollbars=yes'); //obout grid
}
}
}
目前,如果我点击Status
我的Status
这两个链接以及View
页面正在同时打开。
提供小提琴不工作。 –
@RohanVeer:它不是纯粹的html,它可以工作,我只是为了参考目的而添加的。 – BNN
@RohanVeer:查看我更新的部分问题了解更多信息。 – BNN