2012-04-25 9 views
2

私は、ファイルの後に表示されるポップアップウィンドウがアップロードされていページでは、ページは、

ClientScript.RegisterStartupScript (Me.GetType(), "Javascript", "javascript: 
    window.open ('http://rsspl05/DocAdmin/confirmmsg.aspx?tdnum=" & TDnum & 
    "','mywindow','width=800,height=400,location=no');", True) 

空白ですが、私が手にポップアップがページと空白のページです出典:

<!-- beginning of HttpRedirect.htm file --> 

<script type="text/javascript"> 

function redirectToHttps()  
{  
    var httpURL = window.location.hostname+window.location.pathname;  
    var httpsURL = "https://" + httpURL ;  
    window.location = httpsURL ;  
}  
redirectToHttps();  
</script> 

<!-- end of HttpRedirect.htm file --> 

と実際のaspxコードは次のとおりです。

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Confirmmsg.aspx.vb" Inherits="docadmin_Confirmmsg" %> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"> 
    <title>Technical Documents</title> 

<link href="StyleSheet.css" rel="stylesheet" type="text/css" />  
    <script language="javascript" type="text/javascript"> 
function confirmmsg(val) 
{ 
// // alert(val + ' has been uploaded successfully.'); 
//  
    //if(confirm("Do you want to upload another document?")==true){ 
    // window.location.href="UploadDoc.aspx"; 
    ///}else{ 
    // window.location.href="../Search.aspx"; 
    // } 
     self.close(); 
} 

</script> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <div style="text-align:center"> 
    The document has been successfully uploaded.The link to the document:<asp:HyperLink 
      ID="lnkpath" runat="server" Target="_blank" Visible="false">HyperLink</asp:HyperLink> 
     <br /><asp:Button ID="btnOk" runat="server" Text="OK" /></div> 
    </form> 
</body> 
</html> 

答えて

1

は、以下のいくつかのことを確認してください:

  • あなたは正しいURL /ファイルを呼び出している
  • あなたのaspxページが正しい分離コードファイルの問題

  • に発生します、あなたのポップアップ分離コードファイルには何もないことを

  • チェックを継承している

  • 最後の(間違った)ポップアップURLをダブルチェックして、それが何かにリダイレクトされた場合は、呼び出したファイルかどうかを確認して、プロセスフローをトレースしてデバッグします。

これは単なる非常に一般的なオプションですので、わかりましたら教えてください。それが役に立てば幸い。

+0

になるはずです。 – shradha