Here's my entire ASPX page below:
<%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
<%@ Register TagPrefix="uc1" TagName="titleNoLogin" Src="includes/titleNoLogin.ascx" %>
<%@ Page Language="vb" CodeBehind="career.aspx.vb" AutoEventWireup="false" Inherits="brousaCMS.career" %>
<HTML>
<HEAD>
<title>brousamanger - Content Management System</title>
<LINK href="Styles.css" type="text/css" rel="stylesheet">
</HEAD>
<body bgColor="#e6e6dc">
<TABLE height="146" cellSpacing="0" cellPadding="0" width="754" border="0">
<TR vAlign="top">
<TD width="754" height="146">
<TABLE height="145" cellSpacing="0" cellPadding="0" width="753" border="0">
<TR vAlign="top">
<TD width="753">
<form id="Form1" runat="server">
<uc1:titlenologin id="TitleNoLogin1" runat="server"></uc1:titlenologin><br>
<asp:Label id="Label1" runat="server" CssClass="medbluetitle">To inform - Career in Home Sewing</asp:Label><br>
<ce:Editor id="Editor1" runat="server" EditorWysiwygModeCss="Styles.css" Height="500px">
<FrameStyle Height="100%" BorderWidth="1px" BorderStyle="Solid" BorderColor="Silver" Width="100%"
CssClass="CuteEditorFrame" BackColor="White"></FrameStyle>
<PageProperties Title="" Description="" HtmlBase="" Keywords=""></PageProperties>
</ce:Editor>
<BR>
<asp:Panel id="Panel1" runat="server"><SPAN class="med">Filename:</SPAN>
<asp:TextBox id="txtFilename" runat="server" CssClass="form"></asp:TextBox>
<asp:button id="btnSubmit" CssClass="formButton" Text="Save HTML" Runat="server"></asp:button>
<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" CssClass="reqfield" ControlToValidate="txtFilename"
ErrorMessage="File Name is required!"></asp:RequiredFieldValidator></asp:Panel><br>
<asp:Label id="Label2" runat="server" CssClass="reqfield">No file extension needed, file will be saved as filename.html</asp:Label><br>
<asp:Label id="lbSubmit" runat="server" CssClass="medbluetitle" Visible="False">Thanks, your article has been submitted</asp:Label>
</form>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</body>
</HTML>
==============================================
Below is the code-behind to the aspx page above:
Imports System.IO
Imports System.Web
Imports System.Text
Imports System.Web.Mail
Public Class career
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Protected WithEvents Form1 As System.Web.UI.HtmlControls.HtmlForm
Protected WithEvents Label1 As System.Web.UI.WebControls.Label
Protected WithEvents Editor1 As CuteEditor.Editor
Protected WithEvents Label2 As System.Web.UI.WebControls.Label
Protected WithEvents lbSubmit As System.Web.UI.WebControls.Label
Protected WithEvents Panel1 As System.Web.UI.WebControls.Panel
Protected WithEvents RequiredFieldValidator1 As System.Web.UI.WebControls.RequiredFieldValidator
Protected WithEvents btnSubmit As System.Web.UI.WebControls.Button
Protected WithEvents txtFilename As System.Web.UI.WebControls.TextBox
'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
If Not txtFilename.Text Is Nothing Then
Editor1.SaveFile("~/brousaCMS2/doc/career/" & txtFilename.Text & ".html")
btnSubmit.Visible = False
Editor1.Visible = False
lbSubmit.Visible = True
Panel1.Visible = False
Label2.Visible = False
End If
End Sub
End Class
===================================================
Thanks in advance for your help!
Lois