?? editpoll.aspx
字號(hào):
<%@ Page Language="c#" CodeBehind="EditPoll.aspx.cs" AutoEventWireup="false" Inherits="ASPNET.StarterKit.Communities.Admin.EditVoting.EditPoll" %>
<%@ Register TagPrefix="User" TagName="AdminHeader" Src="~/Admin/Controls/AdminHeader.ascx" %>
<%@ Register TagPrefix="community" Namespace="ASPNET.StarterKit.Communities.Admin" Assembly="ASPNET.StarterKit.Communities" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.SqlClient" %>
<%@ import Namespace="System.Text" %>
<%@ import Namespace="ASPNET.StarterKit.Communities" %>
<%@ import Namespace="ASPNET.StarterKit.Communities.Admin" %>
<user:AdminHeader Title="Edit Voting Poll" Runat="server" id="AdminHeader1" />
<h3>Edit/Add Voting Poll</h3>
<form runat="server">
<table border="0" cellspacing="1" cellpadding="2" bgcolor="#aaaaaa">
<tr>
<td bgcolor="#eeeeee">
Active?
</td>
<td bgcolor="#ffffff">
<asp:CheckBox ID="IsActive" Text="Check this box when you are ready for this poll to go live." Runat="server" />
</td>
</tr>
<tr>
<td bgcolor="#eeeeee">
Question:
</td>
<td bgcolor="#ffffff">
<asp:TextBox ID="PollQuestion" size="40" MaxLength="256" Runat="server" />
<asp:RequiredFieldValidator ControlToValidate="PollQuestion" ForeColor="Red" ErrorMessage="* Required" Display="Dynamic" Runat="server" id="RequiredFieldValidator1" />
</td>
</tr>
<tr>
<td bgcolor="#eeeeee">
Global?
</td>
<td bgcolor="#ffffff">
<asp:CheckBox ID="IsGlobal" Text="Check this box if you want this poll to be available to all Sections." Runat="server" />
</td>
</tr>
<tr>
<td bgcolor="#eeeeee" valign="top">
Date Range:<br>
(Not Required)
</td>
<td bgcolor="#ffffff">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td valign="top">
Start Date:
</td>
<td valign="top">
<asp:TextBox ID="StartDate" size="10" MaxLength="10" Runat="server" />
</td>
<td align="middle" width="200">
<asp:Calendar ID="StartDateCalendar" SelectionMode="Day" Width="150" runat="server" />
[<asp:LinkButton ID="StartDateCalendarLink" Text="Show Calendar" Runat="server" />]
<br>
<br>
</td>
</tr>
<tr>
<td bgcolor="#aaaaaa" colspan="3"></td>
</tr>
<tr>
<td valign="top">
End Date:
</td>
<td valign="top">
<asp:TextBox ID="EndDate" size='10"' MaxLength="10" Runat="server" />
</td>
<td align="middle">
<asp:Calendar ID="EndDateCalendar" SelectionMode="Day" Width="150" runat="server" />
[<asp:LinkButton ID="EndDateCalendarLink" Text="Show Calendar" Runat="server" />]
<br>
<br>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#eeeeee">
Display Results?
</td>
<td bgcolor="#ffffff">
<asp:CheckBox ID="DisplayResultsToPublic" Text="Check this box if you want the results displayed." Runat="server" />
</td>
</tr>
<asp:Panel ID="PollDetailsPanel" Runat="server">
<TR>
<TD vAlign="top" bgColor="#eeeeee">Poll Choices:
</TD>
<TD bgColor="#ffffff">
<asp:Label id="PollChoiceDuplicate" Runat="server" ForeColor="Red" Visible="False">* Duplicate choices are not allowed</asp:Label>
<asp:DataGrid id="PollChoices" Runat="server" ShowHeader="False" CellPadding="2" AutoGenerateColumns="False" DataKeyField="PollChoice_ID">
<AlternatingItemStyle cssclass="alternatingItemStyle" />
<ItemStyle cssclass="ItemStyle" />
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem,"Choice")%>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<asp:ImageButton CommandName="Delete" ImageUrl="../Images/Delete.gif" AlternateText="Delete" Runat="Server" />
<asp:ImageButton CommandName="Up" ImageUrl="../Images/Up.gif" AlternateText="Up" Runat="Server" />
<asp:ImageButton CommandName="Down" ImageUrl="../Images/Dn.gif" AlternateText="Down" Runat="Server" />
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid><BR>
<asp:TextBox id="AddChoice" Runat="server" MaxLength="100" Rows="30"></asp:TextBox>
<asp:Button id="Button1" Runat="server" Text="Add Choice" CausesValidation="False"></asp:Button></TD>
</TR>
<TR>
<TD vAlign="top" bgColor="#eeeeee"><A title="Determines which Roles are allowed to view this Poll." href="javaScript:alert('Determines which Roles are allowed to view this Poll.')">Roles</A>:
</TD>
<TD bgColor="#ffffff">
<community:ListPicker id="Roles" runat="server" SelectedItemsText="Selected Roles" AllItemsText="All Roles"></community:ListPicker></TD>
</TR>
<TR>
<TD vAlign="top" bgColor="#eeeeee"><A title="Determines which Sections are allowed to view this Poll." href="javaScript:alert('Determines which Sections are allowed to view this Poll.')">Sections</A>:
<BR>
(Ignored if "Global" is checked)
</TD>
<TD bgColor="#ffffff">
<community:ListPicker id="Sections" runat="server" SelectedItemsText="Selected Sections" AllItemsText="All Sections"></community:ListPicker></TD>
</TR>
</asp:Panel>
<tr>
<td bgcolor="#dddddd" colspan="2" align="right">
<asp:Button Text="Save" Runat="server" id="Button2" />
<asp:Button Text="Cancel" CausesValidation="False" Runat="server" id="Button3" />
</td>
</tr>
</table>
</form>
<table cellpadding="3" cellspacing="0" border="0">
<tr>
<td><a href="Default.aspx">Return to Edit Polls</a></td>
<td>|</td>
<td><a href="../Default.aspx">Return to Admin</a></td>
<td>|</td>
<td><a href="../../Default.aspx">Return to Site</a></td>
</tr>
</table>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -