هذا السؤال موجه الى الأخ عبدالله شقلية
لاني حاولت ان اضع الموضوعي في منتديات المحيط العربي لكن توجد مشكلة في المنتدى حيث اني عندما انقر على زر الإضافة تظهر لي الرسالة التالية ولهذا وضعت الموضوع في هذا المنتدى الأكثر من رائع
Active Server Pages error 'ASP 0113'
Script timed out
/insert_topic_reply.asp
The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools
الإستفسار هو :
السلام عليكم اخ عبدالله وجميع اعضاء المنتدى الرائع
هذه اول مشاركة لي في المنتدى
انا مبتدي في لغة asp
لقد قمت بتصميم صفحة تعرض الأخبار من قاعدة البيانات
والصفحة شغالة لكن تعرض لي جميع الأخبار في صفحة واحدة وعندما كنت ابحث عن موضع يشرح كيف يتم تقسيم النتائج وجدت موضع على الرابط التالي
http://www.arabmoheet.com/topic.asp?topic_no=93
لكن لم افهم شي وحاولت تطبيق الطريقة اكثر من مرة لكن للأسف لم افلح
ولهذا ارفقت لك الكود حق الأخبار اريد منك ان تكتب لي الصفحة التي تعرض 5 مواضيع في الصفحة الأولى وبعد ذلك تعرض لي الصفحات المتبقية على شكل ارقام للصفحات
وكود الصفحة هو :
<%@ Language=VBScript CodePage = "1256"%>
<html dir="rtl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
</head>
<body bgcolor="#ffffff">
<p align="center"><b>الأخبار</b></p>
<div align="center">
<center>
<!--#include file="connection.txt" -->
<%
'أوامر اختيار الجدول واستدعاء البيانات منه
selectSQL="select * from news order by add_dat desc"
set rs=ADO.execute(selectSQL)
do while not rs.eof
id=rs("id")
add_dat=rs("add_dat")
subject=rs("subject")
body_one=rs("body_one")
'أوامر استعراض البيانات
%>
<table border="0" width="91%">
<tr>
<td width="100%" bgcolor="#C0C0C0"> <b><a href="body.asp?field=genral&id=<%=rs("id")%>"><%response.write subject %>
</a></b></td>
</tr>
<tr>
<td width="100%">
<p align="right">التاريخ:<%response.write add_dat %>
</td>
</tr>
<tr>
<td width="100%">
<p align="right">الخبر:<%response.write body_one %>
</td>
</tr>
</table>
</center>
</div>
<hr color="#C0C0C0" width="90%">
<p align="center"><%
rs.movenext
loop
ADO.close
%>
<p align="center"> </p>
</body>
</html>