⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vote.aspx

📁 asp.net 商业2.0论坛对理解论坛的制作很用帮助
💻 ASPX
字号:
<%@ Register TagPrefix="Forum" TagName="Bt" Src="_Bt.ascx" %>
<%@ Register TagPrefix="Forum" TagName="Top" Src="_Top.ascx" %>
<%@ Page language="c#" Codebehind="Vote.aspx.cs" AutoEventWireup="false" Inherits="Forum.Vote" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>
			<%=Title%>
		</title>
		<script>
		function Gopreview()
		{
		document.PreView.sBody.value=document.Vote.sBody.value;
		var popupWin = window.open('', 'PreView_Page', 'scrollbars=yes,width=750,height=450');
		document.PreView.submit()
		}
		</script>
		<META http-equiv="Content-Type" content="text/html; charset=gb2312">
		<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript (ECMAScript)" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="Forum.css" type="text/css" rel="stylesheet">
		<script src="Ubb.js"></script>
	</HEAD>
	<body topMargin="0" leftmargin="0">
		<form id="Vote" method="post" runat="server">
			<FORUM:TOP id="Top" Runat="server" EnableViewState="False"></FORUM:TOP>
			<table width="97%" align="center" cellpadding="4" cellspacing="1">
				<tr>
					<td>
						<asp:Label id="Path" runat="server" EnableViewState="False"></asp:Label>
					</td>
					<td align="right">
						<asp:label id="TopicWithMe" runat="server" EnableViewState="False"></asp:label>
					</td>
				</tr>
			</table>
			<asp:Table id="Table1" runat="server" CellPadding="4" CellSpacing="1" Width="97%" HorizontalAlign="Center">
				<asp:TableRow AccessKey="H">
					<asp:TableCell ColumnSpan="2">发言</asp:TableCell>
				</asp:TableRow>
				<asp:TableRow AccessKey="B">
					<asp:TableCell VerticalAlign="Top">主题标题:</asp:TableCell>
					<asp:TableCell>
						<asp:TextBox id="sTitle" runat="server" Columns="60" MaxLength="50"></asp:TextBox>
						<asp:RequiredFieldValidator id="Requiredfieldvalidator1" runat="server" ErrorMessage="主题标题不能为空" Display="None" ControlToValidate="sTitle"></asp:RequiredFieldValidator>
					</asp:TableCell>
				</asp:TableRow>
				<asp:TableRow AccessKey="B">
					<asp:TableCell VerticalAlign="Top">投票内容:<br><br>每行一个投票项目</asp:TableCell>
					<asp:TableCell>
						<asp:TextBox id="sVote" runat="server" TextMode="MultiLine" Rows="8" Columns="80"></asp:TextBox>
						<asp:RequiredFieldValidator id="Requiredfieldvalidator2" runat="server" ErrorMessage="投票内容不能为空" Display="None" ControlToValidate="sVote"></asp:RequiredFieldValidator>
					</asp:TableCell>
				</asp:TableRow>
				<asp:TableRow AccessKey="B">
					<asp:TableCell VerticalAlign="Top">当前心情:</asp:TableCell>
					<asp:TableCell>
						<asp:RadioButtonList ID="sFace" Runat="server" RepeatDirection="Horizontal" RepeatColumns="9" RepeatLayout="Table" Width="450">
							<asp:ListItem Value="1" Text="<img src='Face/Face1.gif' broder='0'" Selected="true"></asp:ListItem>
							<asp:ListItem Value="2" Text="<img src='Face/Face2.gif' broder='0'"></asp:ListItem>
							<asp:ListItem Value="3" Text="<img src='Face/Face3.gif' broder='0'"></asp:ListItem>
							<asp:ListItem Value="4" Text="<img src='Face/Face4.gif' broder='0'"></asp:ListItem>
							<asp:ListItem Value="5" Text="<img src='Face/Face5.gif' broder='0'"></asp:ListItem>
							<asp:ListItem Value="6" Text="<img src='Face/Face6.gif' broder='0'"></asp:ListItem>
							<asp:ListItem Value="7" Text="<img src='Face/Face7.gif' broder='0'"></asp:ListItem>
							<asp:ListItem Value="8" Text="<img src='Face/Face8.gif' broder='0'"></asp:ListItem>
							<asp:ListItem Value="9" Text="<img src='Face/Face9.gif' broder='0'"></asp:ListItem>
							<asp:ListItem Value="11" Text="<img src='Face/Face11.gif' broder='0'"></asp:ListItem>
							<asp:ListItem Value="11" Text="<img src='Face/Face11.gif' broder='0'"></asp:ListItem>
							<asp:ListItem Value="12" Text="<img src='Face/Face12.gif' broder='0'"></asp:ListItem>
							<asp:ListItem Value="13" Text="<img src='Face/Face13.gif' broder='0'"></asp:ListItem>
							<asp:ListItem Value="14" Text="<img src='Face/Face14.gif' broder='0'"></asp:ListItem>
							<asp:ListItem Value="15" Text="<img src='Face/Face15.gif' broder='0'"></asp:ListItem>
							<asp:ListItem Value="16" Text="<img src='Face/Face16.gif' broder='0'"></asp:ListItem>
							<asp:ListItem Value="17" Text="<img src='Face/Face17.gif' broder='0'"></asp:ListItem>
							<asp:ListItem Value="18" Text="<img src='Face/Face18.gif' broder='0'"></asp:ListItem>
						</asp:RadioButtonList>
					</asp:TableCell>
				</asp:TableRow>
				<asp:TableRow AccessKey="B">
					<asp:TableCell VerticalAlign="Top">内容:</asp:TableCell>
					<asp:TableCell>
						<iframe name="ad" frameborder="0" width="100%" height="30" scrolling="no" src="Upimages.aspx?fbId=<%=fbId%>&isRe=Vote">
						</iframe>
						<!--#include file="Ubb.htm"-->
						<asp:TextBox id="sBody" runat="server" TextMode="MultiLine" Rows="12" Columns="80"></asp:TextBox>
					</asp:TableCell>
				</asp:TableRow>
				<asp:TableRow AccessKey="B">
					<asp:TableCell VerticalAlign="Top">选项:</asp:TableCell>
					<asp:TableCell>
						<asp:CheckBox id="IsLock" runat="server" Text="不允许回复贴子"></asp:CheckBox>
					</asp:TableCell>
				</asp:TableRow>
				<asp:TableRow AccessKey="B">
					<asp:TableCell VerticalAlign="Top">选项:</asp:TableCell>
					<asp:TableCell>
						<asp:CheckBox id="IsSendPoint" runat="server" Text="结帖送分"></asp:CheckBox> 您目前可以送经验值
<asp:Label id="objExp" runat="server"></asp:Label>,魅力值
<asp:Label id="objLns" runat="server"></asp:Label>
					</asp:TableCell>
				</asp:TableRow>
				<asp:TableRow AccessKey="B">
					<asp:TableCell VerticalAlign="Top">选项:</asp:TableCell>
					<asp:TableCell>
						<asp:checkbox ID="IsMail" runat="server" Text="有回复时使用邮件通知您?" />
						<FONT face="宋体">&nbsp;&nbsp; </FONT>
						<asp:checkbox ID="IsMsg" runat="server" Text="有回复时使用论坛短消息通知您?" />
					</asp:TableCell>
				</asp:TableRow>
				<asp:TableRow AccessKey="B">
					<asp:TableCell VerticalAlign="Top"></asp:TableCell>
					<asp:TableCell>
						<asp:Button id="Save" Text="发  表" Runat="server" OnClick="Save_Click"></asp:Button>
						<input type="button" value='预  览' name="Button" onclick="Gopreview()"> <INPUT type="reset" value="清  除">
					</asp:TableCell>
				</asp:TableRow>
			</asp:Table>
			<asp:ValidationSummary id="ValidationSummary1" runat="server" ShowSummary="False" DisplayMode="List" ShowMessageBox="True"></asp:ValidationSummary>
			<FORUM:BT id="Bt" Runat="server" EnableViewState="False"></FORUM:BT>
		</form>
		<form name="PreView" action="PreView.aspx?fbId=<%=fbId%>" method="post" target="PreView_Page">
			<input type="hidden" name="sBody">
		</form>
	</body>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -