问题出在这里:
<script type="text/javascript" language="javascript">
function ShowPopupForm()
{
var spread = document.getElementById("<%=FpSpread1.ClientID %>");
if (spread == null) { return; }
var text = spread.GetValue(spread.GetActiveRow(), spread.GetActiveCol());
var value = window.showModalDialog("opupForm.aspx?searchkey=" + encodeURI(text), "请选择一个值!", "dialogWidth=650px;dialogHeight=310px;directories=0;channelmode=0;fullscreen=0;menubar=0;titlebar=1;center=1;help=0;status=0;toolbar=0;location=0");
if (value != undefined && value != null && value != "") {
// 在这里获得返回值,并回写到Spread中
spread.UpdatePostbackData();
spread.CallBack("EmployeeID-" + value);
}
}
将ShowPopupForm()函数内容清空就没问题 ,请估计下是会是什么问题。 |