public partial class Blogger_BlogPost : System.Web.UI.Page
{
DBUpdate insertcontents = new DBUpdate();
StreamWriter sw;
string title;
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnPublish_Click(object sender, ImageClickEventArgs e)
{
sw = File.CreateText(Server.MapPath(txtTitle.Text+".html"));
sw.WriteLine("<h3>"+txtTitle.Text+"</h3>");
sw.WriteLine(contentEditor.Content);
sw.Close();
No comments:
Post a Comment