2016-03-09 74 views

回答

1

一個選項是Session變量。

function GetRowValue(val) { 

    var uniqueKey = window.opener.document.getElementById("UniqueKeyField").value; 

    //ASP code here for assigning Javascript var to session var 
    '<%Session["UniqueKey"] = "' + uniqueKey + '"; %>'; 
      window.close(); 
     } 

獲取變量的JavaScript(如果需要)

<script type="text/javascript"> 
    function GetUniqueKey() 
    { 
     var uniqueKey = '<%= Session["UniqueKey"] %>'; 
    } 
</script> 
+1

非常感謝你的先生......我從Popupwindow(ID)值,aspx頁面,但使用該ID(這是在文本框)我需要從數據庫中提取詳細信息。請你幫助我 –

相關問題