ファイルのアップロード後にポップアップ ウィンドウが表示されます。
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>