Minggu, 03 Juni 2012

history pemograman ASP

ASP or Active Server Pages is the Microsoft’s first ever server-side scripting language used for generating dynamic and interactive pages. ASP atau Active Server Pages adalahyang pertama yang pernah Microsoft server-side scripting bahasa yang digunakan untukmenghasilkan halaman yang dinamis dan interaktif. Initially, Microsoft added it as an add-on to the IIS (Internet Information Services) for Windows NT 4.0 but after its success, Microsoft included it as a free component of Windows Server after the release of Microsoft Windows 2000 Server.
Awalnya, Microsoft menambahkan sebagai add-on untuk IIS (Internet Information Services) untuk Windows NT 4.0 tapi setelah keberhasilannya, Microsoft memasukkannya sebagai komponen bebas dari Windows Server setelah rilis Microsoft Windows 2000 Server.
Does anyone out there know what is up with this? Apakah ada yang di luar sana tahu apa dengan ini?
Building webpage using ASP is quite easy; all what you need to do is to learn and efficiently use various ASP built-in-objects which will be briefly discussed later. Membangun halaman web menggunakan ASP sangat mudah, semua apa yang perlu Anda lakukan adalah untuk belajar dan efisien menggunakan berbagai ASP built-in-objek yang akan dibahas secara singkat kemudian. Each object will provide you with various frequently used functions that you can use for creating dynamic and interactive web pages. Setiap objek akan menyediakan Anda dengan berbagai fungsi yang sering digunakan yang dapat Anda gunakan untuk membuat halaman web dinamis dan interaktif. For instance, in ASP 2.0, there are six built-in objects; Server object, Session object, Response object, Server object, ASPError object and Application object. Misalnya, dalam ASP 2.0, ada enam built-in objek; Server objek, Sesi objek, objek Respon, objek Server, objek ASPError dan objek Aplikasi.
My learning books…. Buku saya belajar …. yes a lot of reading…. ya banyak membaca ….
Another important question that comes in the mind of almost all new ASP learners is that how ASP pages are written? Pertanyaan penting yang muncul dalam benak hampir semua pelajar ASP baru adalah bahwa bagaimana ASP halaman yang ditulis? Well, it is simple; all of the ASP pages are written in a scripting language. Yah, itu adalah sederhana, semua halaman ASP ditulis dalam bahasa scripting. It is up to the developer, which scripting language to choose, however, most of the asp developers around the world use VBScript and some use Jscript or PerlScript as well. Terserah kepada pengembang, yang bahasa scripting untuk memilih, namun, sebagian besar pengembang asp di seluruh dunia menggunakan VBScript dan beberapa menggunakan JScript atau PerlScript juga. Just remember here that all the scripts are executed on the server so the browser needs not to support scripting. Hanya ingat di sini bahwa semua skrip dijalankan pada server sehingga browser tidak perlu untuk mendukung scripting. The browser only displays the ASP file. Browser hanya menampilkan file ASP. Once you learn, even the basics, about ASP, then you can create dynamic web pages, can respond to user queries, can access database along with returning the results to the browser and can also handle network traffic, at advanced level, as well. Setelah Anda mempelajari, bahkan dasar-dasar, tentang ASP, maka Anda dapat membuat halaman web dinamis, dapat menanggapi permintaan pengguna, dapat mengakses database bersama dengan mengembalikan hasil ke browser dan juga bisa menangani lalu lintas jaringan, di tingkat lanjutan, juga.
ASP or active was previously known as the dbWeb and it was developed by the Aspect Software Engineering. ASP atau aktif sebelumnya dikenal sebagai dbWeb dan itu dikembangkan oleh Software Engineering Aspek. It was the first WDE (Web application Development Environment) that incorporated the feature of integration of the web application directly into the web server. Itu adalah pertama WDE (aplikasi Web Development Environment) yang menggabungkan fitur integrasi dari aplikasi web langsung ke web server. It was released almost after 9 months of the release of WebObjects (by Apple). Album ini dirilis hampir setelah 9 bulan dari rilis WebObjects (oleh Apple). ASP introduced various popular methods of developing web applications at the time of its own introduction. ASP diperkenalkan metode populer berbagai mengembangkan aplikasi web pada saat pengenalan sendiri. ASP, as its history speaks, was an attempt to achieve high performance in comparison with calling other external CGI scripts or executable programs. ASP, seperti sejarah berbicara, merupakan upaya untuk mencapai kinerja yang tinggi dibandingkan dengan memanggil script lainnya CGI eksternal atau program dieksekusi. Before the introduction of ASP, web applications used to access external executable programs or CGI scripts. Sebelum pengenalan ASP, aplikasi web yang digunakan untuk mengakses program dieksekusi eksternal atau skrip CGI.
Different Versions of ASP Berbeda Versi ASP
Microsoft has released various versions of ASP. Microsoft telah merilis berbagai versi ASP. Following are the versions of ASP released by ASP. Berikut ini adalah versi ASP dirilis oleh ASP.
  • ASP Version 1: it was distributed with the Microsoft IIS 3.0 (December 1996) ASP Versi 1: itu didistribusikan dengan Microsoft IIS 3.0 (Desember 1996)
  • ASP Version 2: it was distributed with the Microsoft IIS 4.0 (September 1997) ASP Versi 2: itu didistribusikan dengan Microsoft IIS 4.0 (September 1997)
  • ASP Version 3: it was distributed with the Microsoft IIS 5.0 (November 2000) ASP Versi 3: itu didistribusikan dengan Microsoft IIS 5.0 (November 2000)
The current version of ASP 3.0 is available in IIS 6.0 and also IIS 7.0 on Microsoft Windows Server 2008. Versi saat ini dari ASP 3.0 tersedia di IIS 6.0 dan juga IIS 7.0 pada Microsoft Windows Server 2008.
About ASP Objects: Tentang ASP Objects:
As mentioned before, ASP provides various objects that provide various frequently used functions that can be used to design interactive and dynamic web pages. Seperti disebutkan sebelumnya, ASP menyediakan berbagai objek yang menyediakan berbagai fungsi yang sering digunakan yang dapat digunakan untuk merancang halaman web interaktif dan dinamis. Following are the six objects of ASP along with their brief description: Berikut ini adalah enam obyek ASP bersama dengan penjelasan singkat mereka:
  • Server Object: the ASP server object is used to access various properties and methods on the server, as the name implies. Obyek Server: objek server ASP digunakan untuk mengakses berbagai properti dan metode di server, sesuai namanya.
  • Response Object: in response to the request made by the browser using ASP request object, the server respond using the asp response object. Obyek Respon: dalam menanggapi permintaan yang dibuat oleh browser menggunakan objek permintaan ASP, server merespon dengan menggunakan objek respon asp.
  • Request Object: as the name suggests, the request object handles the requests made from the browser for a page from the server. Obyek Permintaan: seperti namanya, objek permintaan menangani permintaan yang dibuat dari browser untuk halaman dari server. Asp request object get all the information from the user about the requested page. Objek permintaan asp mendapatkan semua informasi dari pengguna tentang halaman yang diminta.
  • Session Object: considered to be one of the most important and useful object of ASP. Sesi Obyek: dianggap sebagai salah satu dari objek paling penting dan berguna dari ASP. Just consider its name; session, what comes in your mind? Hanya mempertimbangkan namanya; sesi, apa yang muncul dalam pikiran Anda? Whenever you use any application, you open it and finally you close it; this period is called as a Session. Setiap kali Anda menggunakan aplikasi apapun, Anda membukanya dan akhirnya Anda menutupnya, periode ini disebut sebagai sebuah Sesi. In order for the web server to know who are you and what you do, ASP provides a unique cookie which is created for every user. Agar web server tahu siapa Anda dan apa yang Anda lakukan, ASP menyediakan sebuah cookie yang unik yang diciptakan untuk setiap pengguna. The cookie is stored at the client side and contains information that can be used to identify the user. Cookie disimpan di sisi klien dan berisi informasi yang dapat digunakan untuk mengidentifikasi pengguna. The Session Object contains information like name, preferences and unique user id. Obyek Sesi berisi informasi seperti nama, preferensi dan user id yang unik. Server creates session for every user and destroys it as soon as the session expires. Server menciptakan sesi untuk setiap pengguna dan menghancurkan secepat sesi berakhir.
  • Application Object: various ASP files, when grouped together, may result in a complete Application. Aplikasi Obyek: file ASP berbagai, ketika dikelompokkan bersama-sama, dapat menyebabkan Aplikasi lengkap. Various ASP files work together in order to perform a common function. File ASP Berbagai bekerja sama dalam rangka untuk melakukan fungsi umum. ASP object is used to hold all these common function files together. ASP objek digunakan untuk menyimpan semua file-file fungsi umum bersama-sama.
  • Error Object: the ASP Error object was not included in previous versions of ASP; ASP 1 and ASP 2. Obyek Kesalahan: objek Kesalahan ASP tidak termasuk dalam versi sebelumnya ASP, ASP dan ASP 1 2. ASPError object was implemented in the latest release of ASP 3.0 and is also available in IIS version 5 and later. ASPError objek diterapkan dalam rilis terbaru dari ASP 3.0 dan juga tersedia di IIS versi 5 dan kemudian. The basic purpose of the ASPError object is to display error messages and detailed information about any error that occurs while executing any script. Tujuan dasar dari objek ASPError adalah untuk menampilkan pesan kesalahan dan informasi rinci tentang segala kesalahan yang terjadi ketika mengeksekusi skrip apapun. The ASPError object is automatically created whenever Server.GetLastError is called. Objek ASPError secara otomatis dibuat setiap kali Server.GetLastError disebut.
Now, as you have read some basic information about ASP, why not try making one simple ASP webpage yourself. Sekarang, karena Anda telah membaca beberapa informasi dasar tentang ASP, mengapa tidak mencoba membuat satu halaman web ASP sederhana sendiri. Just carefully go through the following steps and you will end up in making a simple ASP webpage. Hanya hati-hati melalui langkah-langkah berikut dan Anda akan berakhir dalam membuat sebuah halaman web ASP sederhana.
  • Make sure that you have little understanding of HTML and any scripting language like VBScript or JavaScript before you start working on ASP. Pastikan bahwa Anda memiliki sedikit pemahaman tentang HTML dan bahasa scripting seperti VBScript atau JavaScript sebelum Anda mulai bekerja pada ASP.
  • Make sure that you have IIS installed on your computer. Pastikan bahwa Anda memiliki IIS diinstal pada komputer Anda.
  • You must know the difference between an HTML file and an ASP file. Anda harus tahu perbedaan antara file HTML dan file ASP. HTML file always have an extension of .html and ASP file has an extension of .asp. File HTML selalu memiliki ekstensi. Html dan ASP file memiliki ekstensi. Asp. HTML and ASP are not the same; whenever a browser request an HTML file, the server simply returns an html file to the browser, however, when a browser request an asp file, the IIS (Internet Information Services) forward the request to the ASP engine where the ASP file is read and script is executed. HTML dan ASP tidak sama; setiap kali permintaan browser file HTML, server hanya mengembalikan sebuah file html ke browser, namun, ketika sebuah permintaan browser file asp, IIS (Internet Information Services) ke depan permintaan ke ASP mesin mana file ASP dibaca dan script dijalankan. After that the ASP file is simply returned in a plain HTML format. Setelah itu file ASP hanya kembali dalam format HTML biasa.
  • The next thing would be to learn basic syntax of ASP. Hal berikutnya adalah untuk belajar sintaks dasar ASP. Its not that difficult, an ASP file contains normal HTML tags just like any HTML file, however, apart from plain HTML tags, an ASP file may contain server scripts as well that are surrounded by delimiters <% and ending with %>. Ini bukan yang sulit, sebuah file ASP berisi tag HTML biasa sama seperti file HTML, namun, terlepas dari tag HTML biasa, sebuah file ASP dapat berisi script server juga yang dikelilingi oleh pembatas <% dan diakhiri dengan%>. Anything between these tags is considered to be server scripts and they are executed on the server. Sesuatu di antara tag ini dianggap sebagai script server dan mereka dieksekusi di server.
  • Now lets try the most famous example that every programmer learns; the hello world example. Sekarang mari kita coba contoh yang paling terkenal yang setiap programmer belajar; contoh hello world. Open a notepad file or any text editor and try the following code that will write output to a browser. Buka file notepad atau editor teks dan mencoba kode berikut yang akan menulis output ke browser. Do note that the response.write command in the following piece of code is used to write any output to the browser. Apakah dicatat bahwa perintah response.write dalam potongan kode berikut digunakan untuk menulis output ke browser.
<html> <html>
<body> <body>
<% <%
response.write(“Hello World!”) response.write (“Hello World!”)
%> %>
</body> </ Body>
</html> </ Html>
The output of the above piece of code would be “Hello World!” that would be displayed on a webpage requested by the browser. Output dari bagian atas dari kode akan menjadi “Hello World!” Yang akan ditampilkan pada halaman Web yang diminta oleh browser.

Tidak ada komentar:

Posting Komentar