TAILIEUCHUNG - Chương 2: Một số tiện ích trong ASP

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 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 trang này chứa form cho phép người dùng đăng ký. 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 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 html head title Registration title head body form method POST action 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 dim conn Sub openConn hàm mở connection tới DB set conn connstr provider . oledb. data source connstr End sub Sub destroyConn hàm đóng và hủy connection set conn nothing End Sub Trang í-- include file -- username username password password confirm Password req confirm Password address address validate some information retrieved from submitted form openConn sql insert into tblUser username password address values username password address sql Chương 2 Một số tiện ích trong ASP 29 destroyConn Successful Registration Login và Logout Trong .

TỪ KHÓA LIÊN QUAN
Đã 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.