Đang chuẩn bị liên kết để tải về tài liệu:
Chương 2: Một số tiện ích trong ASP

Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG

Tham khảo tài liệu 'chương 2: một số tiện ích trong asp', công nghệ thông tin, quản trị web phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Chương 2 Một số tiện ích trong ASP Mục tiêu Tìm hiểu một số tiện ích Registration Login và Logout Quản lý User Quản lý Product Shopping cart Sử dụng tiếng Việt trong ASP 2.1 Registration Registration là module cho phép một khách vãng lai đăng ký làm thành viên của website. Module này gồm một form đăng ký thành viên 1 file asp xử lý form này insert dữ liệu vào database. Ở database có một table tblUser chứa danh sách các thành viên của website mill RegistrationForm.htm trang này chứa form cho phép người dùng đăng ký. RegistrationProcess.asp trang này xử lý dữ liệu từ form trên nếu hợp lệ thì insert dữ liệu vào database Ngoài ra để kết nối vào database chúng ta viết 1 file connection.asp chứa các hàm open và destroy connection rồi include file này vào các file có nhu cầu truy cập database. Trong Database chứa table tblUser 28 ASP Trang RegistrationForm.htm html head title Registration title head body form method POST action RegistrationProcess.asp p Username input type text name username p p Password input type password name password p p Confirm Password input type password name ConfirmPassword p p Address input type text name address p p input type submit value Submit name submit p form body html Trang Connection.asp dim conn Sub openConn hàm mở connection tới DB set conn server.createobject adodb.connection connstr provider microsoft.jet. oledb. 4.0 data source server.mappath myDB.mdb conn.open connstr End sub Sub destroyConn hàm đóng và hủy connection conn.close set conn nothing End Sub Trang RegistrationProcess.asp í-- include file Connection.asp -- username request.form username password request.form password confirm Password req uest.form confirm Password address request.form address validate some information retrieved from submitted form openConn sql insert into tblUser username password address values username password address conn.execute sql Chương 2 Một số tiện ích trong ASP 29 destroyConn response.write Successful Registration 2.2 Login và Logout Trong .

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.