ASP.NET Page /Admin/Newsletter.aspx (C#)
Uses Code Behind Page Page /Admin/Newsletter.aspx.cs (C#)
1: <%@ Page Language="C#" AutoEventWireup="True" CodeBehind="Newsletter.aspx.cs" validateRequest="false" Inherits="QuiznetOnline.Web.UI.Admin.Newsletter" %>  
2: <%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>  
3:   
4: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
5:   
6: <html xmlns="http://www.w3.org/1999/xhtml">  
7: <head runat="server">  
8:     <title></title>  
9: </head>  
10: <body>  
11:     <form id="form1" runat="server">  
12:     <asp:Label runat="server" ID="lblError" Text="" Font-Size="XX-Small" ForeColor="Red"></asp:Label>  
13:   
14:         <table>  
15:         <tr>  
16:             <td><asp:DropDownList runat="server" ID="ddlNewsletter" OnSelectedIndexChanged="ddlNewsletter_SelectedIndexChanged" AutoPostBack="true"/>  
17:                 <asp:SqlDataSource ID="SqlDataSource1" runat="server"  
18:                     ConnectionString="<%$ ConnectionStrings:QuiznetOnline.Data.Properties.Settings.Default.QuizNetOnlineConnectionString %>"  
19:                     SelectCommand="SELECT [NewsletterID], [Name] FROM [Newsletter]">  
20:                 </asp:SqlDataSource>  
21:             </td>  
22:         </tr>  
23:         </table>  
24:   
25:     <div>  
26:         <table border="0">  
27:             <tr>  
28:                 <td>News Letter Name : <asp:TextBox runat="server" ID="txtName"/></td>  
29:             </tr>  
30:             <tr>  
31:                 <td>Author Name : <asp:TextBox runat="server" ID="txtAuthorName"/></td>  
32:             </tr>  
33:             <tr>  
34:                 <td>Email Subject : <asp:TextBox runat="server" ID="txtEmailSubject"/></td>  
35:             </tr>  
36:             <tr>  
37:                 <td>Email Body : <FTB:FreeTextBox ID="txtEmailBody" runat="server"></FTB:FreeTextBox></td>  
38:             </tr>  
39:             <tr>  
40:                 <td>Is Active : <asp:CheckBox runat="server" ID="chkIsActive" /></td>  
41:             </tr>  
42:             <tr>  
43:                 <td>User SQL script : <asp:TextBox TextMode="MultiLine" runat="server" ID="txtUserSQLscript" Width="100%" /></td>  
44:             </tr>  
45:         </table>  
46:   
47:         <table border="1">  
48:         <tr>  
49:             <td>  
50:                 <asp:Button runat="server" Text="Show SQL results" OnClick="cmdShowSQL_Click" ID="cmdShowSQL" />  
51:                 <asp:Button runat="server" Text="Save" ID="cmdSave" OnClick="cmdSave_Click" />  
52:                 <asp:Button runat="server" Text="Send Email" ID="cmdSendEmail" OnClick="cmdSendEmail_Click" />  
53:             </td>  
54:         </tr>  
55:         <tr>  
56:             <td>  
57:                 <asp:GridView runat="server" ID="tblSQLresults" CellPadding="4"  
58:                     EnableModelValidation="True" ForeColor="#333333" GridLines="None">  
59:                     <AlternatingRowStyle BackColor="White" />  
60:                     <EditRowStyle BackColor="#2461BF" />  
61:                     <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />  
62:                     <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />  
63:                     <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />  
64:                     <RowStyle BackColor="#EFF3FB" />  
65:                     <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />  
66:                 </asp:GridView>  
67:             </td>  
68:         </tr>  
69:         </table>  
70:     </div>  
71:     </form>  
72: </body>  
73: </html>  

.NET Documentation Tool is © 2002 - 2009 Winnersh Triangle Web Solutions Limited.