... ASP ( ACTIVESERVER PAGES) Khái niệm ASP (Active Server Pages) ASP môi trường kịch máy server (server- side scripting environment) Dùng asp để tạo chạy ứng dụng web động có tương tác với web server ... Request, Response, Server, Apllication, Session Có khả mở rộng thành phần ActiveX server (ActiveX server components) Môi trường ASP cài đặt Server với Web server Một ứng dụng viết ASP file hay nhiều ... tới web server Web server gọi Nghiên cứu xây dựng trang bán sách Internet dựa công nghệ ASP ISAPI để cộng số, sau trả lại kết cho browser trang HTML ASP - ActiveServer Pages Ta sử dụng ASP để...
... hai chạy Web Server có hỗ trợ ISAPI CHƯƠNG III ACTIVESERVER PAGEs (ASP) I TỔNG QUAN VỀ ASP ( ACTIVESERVER PAGES) Khái niệm ASP (Active Server Pages) ASP môi trường kịch máy server (server- side ... Request, Response, Server, Apllication, Session Có khả mở rộng thành phần ActiveX server (ActiveX server components) Môi trường ASP cài đặt Server với Web server Một ứng dụng viết ASP file hay nhiều ... lệnh ASP Script Cấu trúc file ASP Một file ASP có tên mở rộng asp, bao gồm thành phần : Text HTML tags Script Commands Hoạt động trang ASP Khi Browser yêu cầu trang ASP đến server, Web Server...
... ActiveServer Pages Trong ví dụ trên, hàm Tong trả kết tổng hai số Cách gọi hàm sau: Trộn lẫn mã VBScript, ASP HTML Ngoài việc sử dụng ... Phương thức khách hàng đưa yêu cầu + SERVER_ NAME: Địa TCP/IP máy chủ Web + SERVER_ PORT: Cổng máy chủ mà từ yêu cầu HTTP khách hàng gởi, thường cổng 80 80 80 đối vớí hầu hết máy chủ Ví dụ: Đoạn ... triển phần mềm - ĐHĐN - 14 - ActiveServer Pages CHƯƠNG THAM CHIẾU ĐỐI TƯỢNG Đối tượng đoạn chương trình có khả thực số cơng việc Mỗi đối tượng kết hợp lập trình liệu ASP cung cấp sẵn đối tượng...
... ActiveServer Pages Kiến trúc ADO Nguồn liệu để loại liệu nơi chứa thông tin truy xuất ADO thiết kế cho ... kết nối - Password: Mật mã truy xuất sở liệu Trung tâm phát triển phần mềm - ĐHĐN - 44 - ActiveServer Pages - File: tên tập tin chứa thông tin xác định kết nối ð Phương thức Close: Đóng kết nối ... ð Phương thức Update: Cập nhật mẩu tin hành Trung tâm phát triển phần mềm - ĐHĐN - 45 - ActiveServer Pages d Đối tượng Error Chứa chi tiết lỗi truy xuất liệu liên quan với toán tử đơn liên quan...
... by the server Text HTML/XML tags ASP Scripts So an ASPpage is similar to an HTML (or XML) web page with calls to ASP functions embedded in it ASPpageASPpage Output Web Browser An ASPpage can ... databases - Dynamic websites: activeserver pages – page 13 Exercise Which of the following structures can represent an ASP file? ASPpageASP Script ASP Script ASPpage Please select the answer ... page Let’s look at the ASP pages Networking documents and databases - Dynamic websites: activeserver pages – page Building a dynamic website using ASP Database .asp (fragment) The first ASP page...
... ActiveServer Pages a Trang ASP Trang ASP trang web có kết hợp chuỗi ký tự, thẻ HTML, ActiveX Component chứa thêm script ASP (kịch ASP) Script ASP lệnh đặc biệt, đặt trang ... ĐHĐN -2- ActiveServer Pages Sơ đồ ứng dụng Web ASP Web Browser http request http response PC client Internet/ Intranet Server chạy IIS ASP file Active Scripting(VBScript, Jscript) ActiveX Component ... Netscape) asp có nội dung hiển thị khác tuỳ thuộc vào khả trình duyệt b Hoạt động trang ASP Khi trang ASP trình duyệt Web yêu cầu, Web server duyệt trang ASP thực dịch câu lệnh kịch ASP, kết trả...
... http://localhost/myweb/login .asp http://127.0.0.1/myweb/login .asp Trung tâm phát triển phần mềm - ĐHĐN -8- ActiveServer Pages CHƯƠNG CẤU TRÚC CƠ BẢN CỦA ASP Để bắt tay vào việc xây dựng trang ASP, bạn cần biết ... If (x =3) then So sánh lớn > If (x >3) then So sánh nhỏ < If (x 3) then So sánh lớn >= If (x> =3) then So sánh nhỏ 2) and (y
... triển phần mềm - ĐHĐN - 23 - ActiveServer Pages end if %> Đối tượng Server Đối tượng Server sử dụng để thực thao tác đặc biệt tác động lên Server Đối tượng Server cung cấp nhiều ... Trên trình duyệt hiển thị: Trung tâm phát triển phần mềm - ĐHĐN - 21 - ActiveServer Pages c Sự khác Form Querytring Server (ASP Application ) Đọc liệu sử dụng Querytring Đọc liệu sử dụng Form Dữ ... người sử dụng gõ “Le” “Anh” ví dụ URL gởi đến Server sau: http://localhost/giaotrinh/login .asp? fname=Le&lname=Anh&B1=Submit Giả sử file ASP "login .asp" chứa đoạn kịch sau: Chào mừng bạn...
... ĐHĐN - 28 - ActiveServer Pages CHƯƠNG THAM CHIẾU THÀNH PHẦN Ngồi đối tượng có sẵn mơi trường ASP, việc tạo Web động ASP trợ giúp nhờ số thư viện đối tượng (ActiveX Component) ActiveX Server Các ... xử lí ASP thực dẫn tiền xử lí #INCLUDE chế Ta sử dụng dẫn để chèn nội dung file khác vào file asp trước ASP xử lí file đuôi asp Để đưa nội dung file khác vào file đuôi asp trước xử lý file asp ... thư mục gốc ứng dụng Mỗi ứng dụng có file Global.asa Khi lần trang asp Trung tâm phát triển phần mềm - ĐHĐN - 27 - ActiveServer Pages ứng dụng yêu cầu, trình chủ IIS đọc nạp thơng tin file Global.asa...
... động thay đổi theo Ví dụ 1: Ta có danh sách trang file links.txt sau: asp_ trang1 .asp asp_trang2 .asp asp_trang3 .asp asp_trang4 .asp Mo dau Gioi thieu Cu phap Bien Với trang nằm danh sách, bạn cần ... mềm - ĐHĐN - 33 - ActiveServer Pages ð GetListIndex(text_file): Trả lại số nguyên bao gồm vị trí (Bắt đầu vị trí 1) mục thời danh sách Content Linking Ví dụ: Đoạn mã asp_ trang2 .asp danh sách ... Content Linking thay đổi url trang Trung tâm phát triển phần mềm - ĐHĐN - 32 - ActiveServer Pages a Cú pháp Để thực việc liên kết trang,...
... ĐHĐN - 41 - ActiveServer Pages CHƯƠNG QUẢN LÝ CƠ SỞ DỮ LIỆU VỚI ASP Khái niệm ADO ADO (ActiveX Data Object ) tập hợp đối tượng cho phép nhà lập trình ASP nối tới sở liệu Nhiều ứng dụng ASP cần số ... set objFSO =Server. CreateObject(“Scripting.FileSystemObject”) set objNewFile=obj.CreateTextFile(“C:\myfile\file.txt”,false) Trung tâm phát triển phần mềm - ĐHĐN - 39 - ActiveServer Pages objNewFile.write(“Hello”) ... object.GetFile(path) + Object: Tên đối tượng FileSystemObject Trung tâm phát triển phần mềm - ĐHĐN - 38 - ActiveServer Pages + path: đường dẫn đến file ð GetFileName: Trả tên file Cú pháp: object.GetFile(path)...
... Trung tâm phát triển phần mềm - ĐHĐN - 53 - ActiveServer Pages Lỗi tạo kết sai: lỗi khó tìm sửa, mã tiếp tục thực tạo kết sai Ví dụ: Xét trang error4 .asp nhận giá trị ngày tháng năm sinh nhập ... dụ: Trang error3 .asp sau khai báo mảng có phần tử: Khai bao mang Nếu thực thi trang error3 .asp, thông báo ... ActiveServer Pages db.Open (”Provider=Microsoft.Jet.OLEDB.4.0; Data source =C:\giaotrinh\dulieu.mdb”) Dim Rs Set Rs =Server. CreateObject(“ADODB.RecordSet”)...
... ActiveServer Pages gì? a Trang ASP b Ðặc điểm ASP c Khả ASP b Hoạt động trang ASP Cấu trúc cách tạo trang ASP Thi hành file ASP ... phép tính khác, trang khác Trung tâm phát triển phần mềm - ĐHĐN - 56 - ActiveServer Pages MỤC LỤC TỔNG QUAN ASP (ACTIVE SERVER PAGES ) 1 Sự phát triển Internert a Liên kết nội dung ... .22 b Lấy giá trị Cookie 23 c Khoá 23 Trung tâm phát triển phần mềm - ĐHĐN - 57 - ActiveServer Pages d Ví dụ 23 Đối tượng Server 24 a Thuộc tính...
... giá trị từ -32 7 68 đến 32 767 Currency Dữ liệu thuộc kiểu tiền tệ Long Dữ liệu thuộc kiểu nguyên dài có giá trị từ -21474 83 6 48 đến 21474 83 6 47 25/152 Chương II: VBScript Nền Tảng Của ASP Các kiểu ... I: Giới Thiệu Giới thiệu ASP Môi trường làm việc ASP Giới thiệu IIS Cách thức làm việc IIS Cài đặt cấu hình cho IIS 6/152 Giới thiệu ASP ASPActiveServer Pages, cung cấp mơi trình ... liệu ASP Chương VI: Xây dựng ứng dụng Web ASP Thời lượng: 30 tiết lý thuyết 15*2 tiết thực hành 4/152 Nội dung giáo trình Tài liệu tham khảo: Giáo trình nhập môn ASP – Nguyễn Thiên Bằng ASP...
... Components Active Database Compenents(ADO) Custom Componen ts ODBC Driver Mô Hình Chi Tiết Hoạt Động ASP DATA ActiveServer Pages ( .asp files) Cấu trúc file ASP : Một file ASP có tên mở rộng asp, bao ... Request, Response, Server, Apllication, Session - Có khả mở rộng thành phần ActiveX server (ActiveX server components) Môi trường ASP cài đặt Server với Web server Một ứng dụng viết ASP file hay nhiều ... Information Server The Internet Or Intranet CGI Application Perl Awk etc CGI Script Server Side Inludes (SSI) ActiveServer Pages interface DLLs Jscript Interpretor VBScript Interpretor Active Server...
... INPUT : FORMS & QUERYSTRINGS 88 10 10 11 11 13 13 14 16 18 18 19 19 19 20 20 20 21 23 23 24 24 24 24 25 26 26 26 26 27 28 28 28 28 28 29 29 29 29 29 29 30 30 30 31 ... crept in ACTIVESERVER PAGES 3. 0 INTRODUCTION THE NEED FOR ASP SO WHAT IS ASP ? W HAT CAN YOU DO WITH ACTIVESERVER PAGES? W HAT DO SERVER- SIDE SCRIPTS LOOK LIKE? W HAT YOU NEED TO RUN ASP 6 7 ... ACTIVESERVER PAGES 3. 0 About this guide This practical guide was prepared as a reference for the ASP Workshop conducted by Manas Tungare at Fr...
... Define a page that will represent the consistent look and feel of a series of pages in a Web site Add a Master Page to the site Create a page based on the Master Page Check the Select Master Page ... using a dedicated state server, or on a dedicated SQLServer database The Pages and Controls page allows you to manage UI aspects of your application such as Themes and Master Pages The configuration ... with similar aspects a very doable proposition In addition to Master Pages, ASP. NET Themes represent a way to apply global style attributes to all the pages in your application ASP. NET also supports...
... http://technet2.microsoft.com /windowsserver20 08/ en/library/7e17a3be-f24e-4fdd-9e 38- a88e2c8fb4d81 033 .mspx?mfr=true 672 Chapter 13 Directory Business Continuity Figure 13- 12 Viewing an Active Directory diagnostics ... “Windows Server 20 08 Performance and Reliability Monitoring Step-by-Step Guide” at http://technet2.microsoft.com/windowsserver20 08 /en/library/7e17a3be-f24e-4fdd-9e 38- a88e2c8fb4d81 033 .mspx?mfr=true ... LDS server role Make sure your Active Directory Domain Server, SERVER0 1.contoso.com, is running, and start your member servers, SERVER03. contoso.com and SERVER0 4.contoso.com Log on to SERVER03. contoso.com...
... same page, the trace information is appended to the bottom of the page (for pages that use flow layout) Figure 12 -8 shows an example FIGURE 12 -8 Tracing information output on an ASP. NET page ... http://localhost/examples/SiteErrorPage.aspx?aspxerrorpath=/examples/Default.aspx Configuring Error-Specific Error Pages It is also possible to define specific pages for various HTTP status codes ... the page is set to an aspx page You can set this to an htm, aspx, or other resource to which the Web server can redirect On redirection, the server passes the path of the page that caused the...