ÎÒÕÒÁËÒ»¸öα¾²Ì¬´úÂ룬ÈçÏ£º
index.asp
<!--#include file="config.asp"-->
<ol>
<%
Set rs=server.CreateObject("adodb.recordset")
sql="select * from Article"
rs.open sql,conn,1,1
do while not rs.eof
%>
<li><a href="article.asp?/<%=rs("id")%>.html"><%=left(trim(rs("title")),30)%></a></li>
<%
rs.movenext
loop
rs.close
set rs=Nothing
%>
</ol>
Article.asp
<!--#include file="config.asp"-->
<%
'¹¦ÄÜ£ºaspʵÏÖα¾²Ì¬µÄÀý×Ó
'꿅᣼www.aspprogram.cn
'À´Ô´£ºÍøÂç
id=request.QueryString("id")
If id="" Then
server_v40=Request.ServerVariables("QUERY_STRING")
id=Int(replace(replace(server_v40,"/",""),".html",""))
End If
Call ReadNews()
%>
<div>
±êÌâ: <b><%= News_title%></b><br />
ÄÚÈÝ: <%=News_content%>
</div>
config.asp
<%
Ïà¹ØÎÊ´ð£º
½¨ÁËÒ»¸öÕ¾µã£¬ÀïÃæÓÐ login.aspx. events.aspx µÈµÈ ÆäËûµÄÒ³Ãæ¡£
µ«ÊÇÎÒµ÷ÊÔ ÆäËûÒ³ÃæµÄʱºò£¬±Ä³öÀ´µÄ×ÜÊÇ login.aspx Ò³Ãæ¡£
¸Õѧasp ÇëÖ¸½Ì
ÄãÉèÖÃÆðʼҳÁË°É¡£¡£
¶÷ÔõôȡÏûÄØ£¿
Òªµ ......
Çë¸÷λ¸ßÊÖ°ï½â¾ö,¼±!!!
<script language="JavaScript" type="text/javascript">
function CheckInput(){
if (document.frm.loginname.length =0){
alert('ÇëÕý ......
ÔÚÒ»¸ö·¢±íÎÄÕµÄÒ³Ã棬Èç¹ûÖÐ;¹Ø±ÕÒ³Ã棬ÕâÌáʾÊÇ·ñ·ÅÆú±à¼£¬
Èç¹ûµã»÷·ÅÆú£¬ÔòתÏòÌîд·ÅÆúÔÒòµÄ½çÃ棬
Èç¹ûµã²»·ÅÆú£¬ÕâÍ£ÁôÔÚÔÒ³Ã棬
Èç¹ûÊǵã»÷Ò³ÃæµÄ³¬¼¶Á´½Ó£¬Ôò´¥·¢Ê¼þʧЧ
ÈçºÎ±àд´ú ......
<%
Sql="select top 8 * from NewsData where d_classid in (select classid from NewsClass where ParentID=16)"
Rs.Open Sql, conn, 1,1
Do Until Rs.Eof
......