المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Introduction to ASP


هشام
01-07-2008, 08:06 AM
Introduction to ASP<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
What is ASP?<o:p></o:p>

ASP stands for Active Server Pages <o:p></o:p>
ASP is a program that runs inside IIS <o:p></o:p>
IIS stands for Internet Information Services <o:p></o:p>
IIS comes as a free component with Windows 2000 <o:p></o:p>
IIS is also a part of the Windows NT 4.0 Option Pack <o:p></o:p>
The Option Pack can be downloaded from Microsoft <o:p></o:p>
PWS is a smaller - but fully functional - version of IIS <o:p></o:p>
PWS can be found on your Windows 95/98 CD <o:p></o:p>ASP Compatibility<o:p></o:p>

ASP is a Microsoft Technology <o:p></o:p>
To run IIS you must have Windows NT 4.0 or later <o:p></o:p>
To run PWS you must have Windows 95 or later <o:p></o:p>
ChiliASP is a technology that runs ASP without Windows OS <o:p></o:p>
InstantASP is another technology that runs ASP without Windows <o:p></o:p>What is an ASP File?<o:p></o:p>

An ASP file is just the same as an HTML file <o:p></o:p>
An ASP file can contain text, HTML, XML, and scripts <o:p></o:p>
Scripts in an ASP file are executed on the server <o:p></o:p>
An ASP file has the file extension ".asp" <o:p></o:p>How Does ASP Differ from HTML?<o:p></o:p>

When a browser requests an HTML file, the server returns the file <o:p></o:p>
When a browser requests an ASP file, IIS passes the request to the ASP engine. The ASP engine reads the ASP file, line by line, and executes the scripts in the file. Finally, the ASP file is returned to the browser as plain HTML <o:p></o:p>What can ASP do for you?<o:p></o:p>

Dynamically edit, change or add any content of a Web page <o:p></o:p>
Respond to user queries or data submitted from HTML forms <o:p></o:p>
Access any data or databases and return the results to a browser <o:p></o:p>
Customize a Web page to make it more useful for individual users <o:p></o:p>
The advantages of using ASP instead of CGI and Perl, are those of simplicity and speed <o:p></o:p>
Provide security since your ASP code can not be viewed from the browser <o:p></o:p>
Clever ASP programming can minimize the network traffic <o:p></o:p>Important: Because the scripts are executed on the server, the browser that displays the ASP file does not need to support scripting at all!<o:p></o:p>
Run ASP on Your PC<o:p></o:p>
You can run ASP on your own PC without an external server. To do that, you must install Microsoft's Personal Web Server (PWS) or Internet Information Services (IIS) on your PC.<o:p></o:p>
How to Run ASP on your own PC<o:p></o:p>
You can run ASP on your own PC without an external server. To do that, you must install Microsoft's Personal Web Server (PWS) or Internet Information Services (IIS) on your PC.<o:p></o:p>
If you are serious about using ASP, you should have at least Windows 98, Second Edition. <o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>

An Inetpub folder will be created on your harddrive. Open it and find the wwwroot folder. <o:p></o:p>
Create a new folder, like "MyWeb", under wwwroot. <o:p></o:p>
Use a text editor to write some ASP code, save the file as "test1.asp" in the "MyWeb" folder. <o:p></o:p>
Make sure your Web server is running - The installation program has added a new icon on your task bar (this is the PWS symbol). Click on the icon and press the Start button in the window that appears. <o:p></o:p>
Open your browser and type in "http://localhost/MyWeb/test1.asp", to view your first ASP page. ASP Syntax<o:p></o:p>
You cannot view the ASP source code by selecting "View source" in a browser, you will only see the output from the ASP file, which is plain HTML. This is because the scripts are executed on the server before the result is sent back to the browser.<o:p></o:p>
In our ASP tutorial, every example displays the hidden ASP source code. This will make it easier for you to understand how it works.<o:p></o:p>
Examples <o:p></o:p>
Write text with ASP (http://www.w3schools.com/asp/showasp.asp?filename=demo_text)
How to write some text with ASP. <o:p></o:p>
Add some HTML to the text (http://www.w3schools.com/asp/showasp.asp?filename=demo_formatting)
How to format the text with HTML tags.<o:p></o:p>
<html>
<body>
<%
response.write("<h2>You can use HTML tags to format the text!</h2>")
%>
<%
response.write("<p style='color:#0000ff'>This text is styled with the style attribute!</p>")
%>
</body>
</html>

الفاروق
01-07-2008, 08:12 AM
أخي شو هيدا البرنامج

مشكور على كلن

snake_eyes
01-07-2008, 11:15 PM
مرحبا يا الفاروق، حبيبي هيدا مش برنامج هيدي لغة برمجة التابعة لشركة مايكروسوفت واللي من خلالها بتقدر تصمم موقع على النت، يعني كيف لغة المنتدى هيدي هيدي php الـ asp هي لغة قديمة لمايكروسوفت أكيد ما بقصد قديمة يعني من سنة الـ 1800 لأ بس أنه لما مايكروسوفت حدثت الغة أطلقت عليها aspx يعني .net إسمها صار asp .net واللي بتكتب فيها vb مع تحياتي

راتب
01-08-2008, 12:05 AM
بارك الله فيك اخي انا على سبيل المثال لا الحصر موقعي الشخصي php

بينما موقع مؤسسة القدس asp>>

snake_eyes
01-08-2008, 01:40 AM
صحيح وموقع العربية بالـ aspx مع العلم أنهم ينصحون بتشغيل الـ php تحت نظام التشغيل linux كي يعمل جيداً بينما الـ ASPX حتى يعمل جيدا يتوجب تشغيله تحت نظام التشغيل Windows

الفاروق
01-08-2008, 03:11 AM
مشكور
جزاك خيراً