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

📄 main.aspx

📁 《征服Ajax》原书的例题源码
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Main.aspx.cs" Inherits="Main" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>电子邮件系统主页面</title>

	<script type="text/javascript">
	var djConfig = {isDebug: false};
	</script>

	<script type="text/javascript" src="dojo/dojo.js"></script>

	<script type="text/javascript">
		dojo.require("dojo.io.*");
		dojo.require("dojo.widget.TreeSelector");
		dojo.require("dojo.widget.LayoutContainer");
		dojo.require("dojo.widget.ContentPane");
		dojo.require("dojo.widget.Button");
		dojo.require("dojo.widget.SplitContainer");
		dojo.require("dojo.widget.Tree");
		dojo.require("dojo.widget.SortableTable");
	</script>

	<link rel="stylesheet" href="css/global.css" type="text/css" />
	<link rel="stylesheet" href="css/mail.css" type="text/css" />

	<script type="text/javascript" src="javascript/main.js"></script>

</head>
<body>
	<div dojotype="TreeSelector" eventnames="select:listSelected" widgetid="treeSelector">
	</div>
	<div dojotype="LayoutContainer" layoutchildpriority='top-bottom' id="main">
		<div id="topMenu" dojotype="ContentPane" layoutalign="top" class="header" style="padding-bottom: 5px;">
			<div style="float: left; margin-right: 10px;">
				<button dojotype="Button" onclick="checkNewMessage()">
					<img src="images/check.gif" height="18" width="18" alt="刷新" title="刷新" />
					检查新邮件
				</button>
			</div>
			<div class="leftButton">
				<button dojotype="Button" onclick="openNewMessage()">
					<img src="images/newemail.gif" height="18" width="18" />
					新建
				</button>
			</div>
			<div class="leftButton">
				<button dojotype="Button" onclick="deleteMessage()">
					<img src="images/delete.gif" height="18" width="18" />
					删除
				</button>
			</div>
			<div class="leftButton">
				<button dojotype="Button">
					<img src="images/reply.gif" height="18" width="18" />
					回复
				</button>
			</div>
			<div class="leftButton">
				<button dojotype="Button">
					<img src="images/forward.gif" height="18" width="18" />
					转发
				</button>
			</div>
			<div class="rightButton">
				<button dojotype="Button" onclick="logOut()">
					<img src="images/logoff.gif" height="18" width="18" />
					注销
				</button>
			</div>
		</div>
		<div dojotype="SplitContainer" orientation="horizontal" sizerwidth="5" activesizing="0"
			layoutalign="client">
			<div id="treePane" dojotype="Tree" toggle="wipe" toggleduration="500" selector="treeSelector"
				sizemin="20" sizeshare="15">
				<div dojotype="TreeNode" title="邮件帐户" childiconsrc="images/root.gif">
					<div dojotype="TreeNode" title="收件箱" childiconsrc="images/inbox.gif">
					</div>
					<div dojotype="TreeNode" title="已发送邮件" childiconsrc="images/sent-items.gif">
					</div>
					<div dojotype="TreeNode" title="已删除邮件" childiconsrc="images/deleted.gif">
					</div>
				</div>
			</div>
			<div dojotype="SplitContainer" orientation="vertical" sizerwidth="5" activesizing="0"
				style="width: 100%; height: 100%;" sizemin="50" sizeshare="85">
				<div id="listPane" dojotype="ContentPane" sizemin="20" sizeshare="20" style="padding: 0">
				</div>
				<div id="contentPane" dojotype="ContentPane" sizemin="20" sizeshare="80" style="padding: 5px">
				</div>
			</div>
		</div>
</body>
</html>

⌨️ 快捷键说明

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