Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

aspα¾²Ì¬ - Web ¿ª·¢ / ASP

ÎÒÕÒÁËÒ»¸öα¾²Ì¬´úÂ룬ÈçÏ£º

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

<%  


Ïà¹ØÎÊ´ð£º

aspÒ³Ãæµ÷ÊÔÎÊÌâ

½¨ÁËÒ»¸öÕ¾µã£¬ÀïÃæÓÐ login.aspx. events.aspx µÈµÈ ÆäËûµÄÒ³Ãæ¡£


µ«ÊÇÎÒµ÷ÊÔ ÆäËûÒ³ÃæµÄʱºò£¬±Ä³öÀ´µÄ×ÜÊÇ login.aspx Ò³Ãæ¡£

¸Õѧasp ÇëÖ¸½Ì
ÄãÉèÖÃÆðʼҳÁË°É¡£¡£

¶÷ÔõôȡÏûÄØ£¿

Òªµ ......

asp±íµ¥Ìá½»ÎÊÌâ

Çë¸÷λ¸ßÊÖ°ï½â¾ö,¼±!!!
<script language="JavaScript" type="text/javascript">
function CheckInput(){
if (document.frm.loginname.length =0){
alert('ÇëÕý ......

asp´¥·¢Ê¼þÎÊÌâ

ÔÚÒ»¸ö·¢±íÎÄÕµÄÒ³Ã棬Èç¹ûÖÐ;¹Ø±ÕÒ³Ã棬ÕâÌáʾÊÇ·ñ·ÅÆú±à¼­£¬
Èç¹ûµã»÷·ÅÆú£¬ÔòתÏòÌîд·ÅÆúÔ­ÒòµÄ½çÃ棬
Èç¹ûµã²»·ÅÆú£¬ÕâÍ£ÁôÔÚÔ­Ò³Ã棬
Èç¹ûÊǵã»÷Ò³ÃæµÄ³¬¼¶Á´½Ó£¬Ôò´¥·¢Ê¼þʧЧ

ÈçºÎ±àд´ú ......

ASP½µÐòÎÊÌâ

    <%
  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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ