-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cover.aspx.cs
executable file
·57 lines (41 loc) · 1.37 KB
/
Cover.aspx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Web.Security;
public partial class Master_Cover : System.Web.UI.Page
{
private CoverBLL _coverBLL;
private CoverEL _coverEL;
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
divvalue.InnerHtml = Editor1.Content;
// Editor1.Content = "";
FileInfo f = new FileInfo(MapPath("~/") + "File.html");
TextWriter tw = f.CreateText();
tw.Write(string.Format("<head><title></title></head><body >{0}</body></html>", Editor1.Content));
tw.Close();
//
try
{
_coverEL = new CoverEL();
// _coverEL.ID = Convert.ToInt32(hdnSMSID.Value);
_coverEL.CoverTitle = "";
_coverEL.CoverPage = Editor1.Content;
_coverEL.CreatedBy = Membership.GetUser().UserName;
_coverEL.ModifiedBy = Membership.GetUser().UserName;
_coverBLL = new CoverBLL(_coverEL);
_coverBLL.SaveCover();
}
catch (Exception ex)
{
//Label1.Text = "Error: " + ex.Message;
}
}
}