|
<%@ Page Language="vb" AutoEventWireup="true" ValidateRequest="false" CodeFile="saveWindow.aspx.vb" Inherits="saveWindow" %>
<!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>Save Template</title>
<link href="EditorStyle.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function chkFile()
{
var filname = document.getElementById("<%=txtFileName.ClientID%>").value;
if(filname == "")
{
alert("Please enter a file name");
return false;
}
else
{
if(filname.lastIndexOf(".htm") == -1 && filname.lastIndexOf(".HTM") == -1 && filname.lastIndexOf(".html") == -1 && filname.lastIndexOf(".HTML") == -1)
{
alert("Please enter file name with .htm or .html extension");
return false;
}
}
}
function setText()
{
document.getElementById("<%=contentSrc.ClientID%>").value = window.opener.editFrame.document.body.innerHTML;
}
</script>
</head>
<body topmargin="0" onload="setText()" bottommargin="0" rightmargin="0" leftmargin="0" class='txtStyle'
bgcolor='#fffcd1'>
<form id="form1" runat="server">
<table align="Center" cellpadding="2" cellspacing="2">
<tr>
<td colspan="2" align="center">
SAVE TEMPLATE
</td>
</tr>
<tr>
<td colspan="2" align="center">
</td>
</tr>
<tr>
<td align="left" class="txtStyle">
Template File Name:
</td>
<td>
<asp:TextBox ID="txtFileName" runat="server" CssClass="txtStyle" Width="214px"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan="2" class="txtStyle">
</td>
</tr>
<tr>
<td colspan="2" align="right">
<asp:Button ID="btnOK" CssClass="buttonStyle2" runat="server" Text="Save" OnClick="bntOK_Click" />
<input type="button" id="btnCancel" class="buttonStyle2" value="Cancel" onclick="window.close()" />
</td>
</tr>
</table>
<input id="contentSrc" runat="server" type="hidden" />
</form>
</body>
</html>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.