-
Notifications
You must be signed in to change notification settings - Fork 0
/
Advertising.aspx
executable file
·196 lines (105 loc) · 8.98 KB
/
Advertising.aspx
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Blank.master" AutoEventWireup="true" CodeFile="Advertising.aspx.cs" Inherits="Master_Advertising" %>
<%@ Register TagPrefix="cc" Namespace="Winthusiasm.HtmlEditor" Assembly="Winthusiasm.HtmlEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManager ID="ScriptManager2" runat="server" EnablePartialRendering="true" />
<asp:SqlDataSource ID="dsAdvertisingObjectives" runat="server" ConnectionString="<%$ ConnectionStrings:terrible1ConnectionString %>"
SelectCommand="sp_SelectAdvertisingObjectives"
ProviderName="System.Data.SqlClient"
SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:QueryStringParameter Name="PresentationID"
QueryStringField="PresentationID" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
<asp:HiddenField ID="HiddenFieldAdvertisingObjectivesID" runat="server" />
<asp:MultiView ID="MultiView1" runat="server">
<asp:View ID="View1" runat="server">
<table id="DemoTable" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="EditorCell" style="height:780px;">
<div id="EditorPanel" style="height:700px;">
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<Triggers></Triggers>
<ContentTemplate>
<cc:HtmlEditor ID="Editor" runat="server" Height="680px" Width="650px" />
</ContentTemplate>
</asp:UpdatePanel>
<br />
<div id="DemoControls">
<asp:Button ID="BtnSave" runat="server" Text="Save" onclick="BtnSave_Click" CssClass="button_small whitishBtn" />
<asp:Button ID="BtnCancel" runat="server" Text="Cancel" onclick="BtnCancel_Click" CssClass="button_small whitishBtn" />
<asp:Button ID="ClearButton" runat="server" Text="Clear" OnClick="ClearButton_Click" CssClass="button_small whitishBtn" ToolTip="Clear the text in the editor above" />
</div>
<div id="Preview">
<div id="PreviewHeading" runat="server" style="display:none" class="demoHeading">Preview</div>
<div id="PreviewControls" style="display:none">
<asp:Button ID="PreviewButton" runat="server" Text="Preview" OnClick="PreviewButton_Click" CssClass="previewButton button" ToolTip="Display the current saved editor text as either formatted or Html below" />
<asp:RadioButtonList ID="Selections" CssClass="radiobuttonList button" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" >
<asp:ListItem Text="Formatted" Value="Formatted" ></asp:ListItem>
<asp:ListItem Text="Html" Value="Html" Selected="True"></asp:ListItem>
</asp:RadioButtonList>
</div>
<div id="PreviewText" >
<asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional" >
<Triggers><asp:AsyncPostBackTrigger ControlID="PreviewButton" EventName="Click" /></Triggers>
<ContentTemplate>
<div id="TextPreview" runat="server" class="preview"></div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</div>
</div>
</td>
</tr>
</table>
</asp:View>
<asp:View ID="View2" runat="server">
<asp:Button ID="btnEdit" runat="server" Text="Edit" onclick="btnEditAttendee_Click" CssClass="button_small whitishBtn" />
<br />
<table cellpadding="2" border="2" width ="650px" height="600px">
<tr><td> <div id="DivContent" runat="server" class="preview"></div></td></tr>
</table>
</asp:View>
<asp:View ID="View3" runat="server">
<table id="DemoTableEdit" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="EditorCellEdit" style="height:780px;">
<div id="EditorPanelEdit" style="height:700px;">
<asp:UpdatePanel ID="UpdatePanel1Edit" runat="server" UpdateMode="Conditional">
<Triggers></Triggers>
<ContentTemplate>
<cc:HtmlEditor ID="EditorEdit" runat="server" Height="680px" Width="650px" InitialMode="Html" />
</ContentTemplate>
</asp:UpdatePanel>
<br />
<div id="DemoControlsEdit">
<asp:Button ID="BtnUpdateEdit" runat="server" Text="Save" onclick="BtnUpdateEdit_Click" CssClass="button_small whitishBtn" />
<asp:Button ID="BtnCancelEdit" runat="server" Text="Cancel" onclick="BtnCancelEdit_Click" CssClass="button_small whitishBtn" />
<asp:Button ID="ClearButtonEdit" runat="server" Text="Clear" OnClick="ClearButtonEdit_Click" CssClass="button_small whitishBtn" ToolTip="Clear the text in the editor above" />
</div>
<div id="PreviewEdit">
<div id="PreviewControlsEdit" style="display:none" >
<asp:Button ID="PreviewButtonEdit" runat="server" Text="Preview" OnClick="PreviewButtonEdit_Click" CssClass="previewButton button" ToolTip="Display the current saved editor text as either formatted or Html below" />
<asp:RadioButtonList ID="SelectionsEdit" CssClass="radiobuttonList button" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" >
<asp:ListItem Text="Formatted" Value="Formatted" ></asp:ListItem>
<asp:ListItem Text="Html" Value="Html" Selected="True"></asp:ListItem>
</asp:RadioButtonList>
</div>
<div id="PreviewTextEdit" >
<asp:UpdatePanel ID="UpdatePanel3Edit" runat="server" UpdateMode="Conditional" >
<Triggers><asp:AsyncPostBackTrigger ControlID="PreviewButtonEdit" EventName="Click" /></Triggers>
<ContentTemplate>
<div id="TextPreviewEdit" runat="server" class="preview"></div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</div>
</div>
</td>
</tr>
</table>
</asp:View>
</asp:MultiView>
</asp:Content>