-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy of Edit_Cover.aspx.cs.exclude
executable file
·87 lines (67 loc) · 2.41 KB
/
Copy of Edit_Cover.aspx.cs.exclude
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Master_Default : System.Web.UI.Page
{
protected void Page_Load(object sender, System.EventArgs e)
{
if (IsPostBack)
{
// If condition is true, execute these statements.
}
else
{
int CoverCoverID;
CoverCoverID = Convert.ToInt32(Request.QueryString.Get("CoverID"));
this.loadCover();
}
}
private void loadCover()
{
int CoverCoverID;
CoverCoverID = Convert.ToInt32(Request.QueryString.Get("CoverID"));
Cover myCover;
myCover = clscover.getCover(CoverCoverID);
Editor.Text = HttpUtility.HtmlDecode(myCover.CoverPage.ToString());
}
protected void BtnUpdate_Click(object sender, System.EventArgs e)
{
//Cover myCover;
//myCover = new Cover();
//myCover.CoverID = System.Convert.ToInt32(txtCoverID.Text);
//myCover.CoverTitle = System.Convert.ToString(txtCoverTitle.Text);
//myCover.CoverPage = System.Convert.ToString(txtCoverPage.Text);
//myCover.CoverFileName = System.Convert.ToString(txtCoverFileName.Text);
//myCover.CreatedBy = System.Convert.ToString(txtCreatedBy.Text);
//myCover.CreatedDate = System.Convert.ToDateTime(calCreatedDate.SelectedDate);
//myCover.ModifiedBy = System.Convert.ToString(txtModifiedBy.Text);
//myCover.ModifiedDate = System.Convert.ToDateTime(calModifiedDate.SelectedDate);
//clscover.Update(myCover);
//Response.Redirect("CoverGrid.aspx", false);
}
protected void BtnCancel_Click(object sender, System.EventArgs e)
{
Response.Redirect("CoverGrid.aspx", false);
}
protected void PreviewButton_Click(object sender, EventArgs e)
{
switch (Selections.SelectedValue)
{
case "Formatted":
TextPreview.InnerHtml = Editor.Text;
break;
case "Html":
TextPreview.InnerText = Editor.Text;
break;
default:
break;
}
}
protected void ClearButton_Click(object sender, EventArgs e)
{
Editor.Text = String.Empty;
}
}