浏览器标题栏加入小图标,页面插入Flash如下:
<title>无标题页</title>
<link rel="icon" href="logo.ico" type="image/x-icon" />
<link rel="shortcut icon" href="logo.ico" type="image/x-icon" />
<link href="App_Themes/StyleSheet.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../swfobject.js"></script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div id="container">
<div id="flashcontent" >
<script type="text/javascript">
var so = new SWFObject("../13.swf", "movie", "892", "162", "8", "#000099");
so.addParam("movie", "../13.swf");
so.addParam("wmode","transparent");
so.addParam("quality", "high");
so.write("flashcontent");
</script>
</div>
实用SQL查询
1.在编写随机出卷系统时,用到随机抽出题库中的N道题目,方法很多,有人使用随机函数等等,其实,一条sql语句搞定:
select top 30 * from test order by newid()
order by newid():随机产生id号,然后根据id号排序;
top 30:前30道题目。
2.在排名次时,经常遇到取前10名,但刚好第11名(12、13...)的成绩和第10名的一样,我们必须也把后面成绩相同的也提取出来,用下面的sql语句搞定:
select top 10 with ties grade,name from result order by grade
实现读出地11、12...的核心语句是with ties
3.SQL2005里面两个表的数据互导语句:
insert into tabel1
字段
select from table2
where 条件
<title>无标题页</title>
<link rel="icon" href="logo.ico" type="image/x-icon" />
<link rel="shortcut icon" href="logo.ico" type="image/x-icon" />
<link href="App_Themes/StyleSheet.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../swfobject.js"></script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div id="container">
<div id="flashcontent" >
<script type="text/javascript">
var so = new SWFObject("../13.swf", "movie", "892", "162", "8", "#000099");
so.addParam("movie", "../13.swf");
so.addParam("wmode","transparent");
so.addParam("quality", "high");
so.write("flashcontent");
</script>
</div>
实用SQL查询
1.在编写随机出卷系统时,用到随机抽出题库中的N道题目,方法很多,有人使用随机函数等等,其实,一条sql语句搞定:
select top 30 * from test order by newid()
order by newid():随机产生id号,然后根据id号排序;
top 30:前30道题目。
2.在排名次时,经常遇到取前10名,但刚好第11名(12、13...)的成绩和第10名的一样,我们必须也把后面成绩相同的也提取出来,用下面的sql语句搞定:
select top 10 with ties grade,name from result order by grade
实现读出地11、12...的核心语句是with ties
3.SQL2005里面两个表的数据互导语句:
insert into tabel1
字段
select from table2
where 条件