Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Đại Cương Về Thiết Kế Web Và Lập Trình Web- P21: Giáo trình bao gồm 5 chương, mỗi chương đều có phần kiến thức lý thuyết và câu hỏi nghiên cứu cụ thể. | 101 Kết quả How now pink cow Server.GetLastError Trả lại đối tượng ASPError đối tượng này có 9 thuộc tính chỉ đọc cung cấp thông tin chi tiết về lỗi. Ví dụ Dim objErrorInfo Set objErrorInfo Server.GetLastError Response.Write ASPCode objErrorInfo.ASPCode Response.Write ASPDescription objErrorInfo.ASPDescription Response.Write Category objErrorInfo.Category Response.Write Column objErrorInfo.Column Response.Write Description objErrorInfo.Description Response.Write File objErrorInfo.File Response.Write Line objErrorInfo.Line Response.Write Number objErrorInfo.Number Response.Write Source objErrorInfo.Source Server.HTMLEncode String Phương thức này cho phép mã hoá chuỗi thành mã HTML đối với xâu ASCII bất kỳ. Ví dụ điều này cho phép hiển thị thẻ HTML mà không xử lý nó như những thẻ HTML thực sự. Ví dụ Response.Write Server.HTMLEncode The tag for a table is Table Kết quả The tag for a table is lt Table gt Kết quả Ở Browser The tag for a table is Table Server.MapPath Path Ánh xạ đường dẫn ảo hay tương đối tới đường dẫn vật lý. Phương thức này không kiểm tra sự tồn tại thực sự của đường dẫn. Nếu bắt đầu bằng dấu hoặc - đường dẫn ảo. Còn không bắt đầu bằng ký tự đó - đường dẫn tương đối. Ví dụ HTML BODY The path of this file is Response.Write Server.MapPath test.asp The path of the file1 is Response.Write Server.MapPath test.asp The path of the file2 is Response.Write Server.MapPath test test.asp 102 The path of the file3 is Response.Write Server.MapPath bOdy HTML Kết quả The path of this file is C VANBANG2 ASP Example test.asp The path of the filel is d inetpub wwwroot test.asp The path of the file2 is C VANBANG2 ASP Example test test.asp The path of the file3 is d inetpub wwwroot Server.Transfer Path Chuyển tới trang ASP khác từ một trang ASP. Thông tin trạng thái khởi tạo trong trang đầu tiên sẽ được chuyển tới trang thứ hai. Ví dụ -------CallingAsp.asp------- Application name Application Maker Application publishdate 05 15 01 Application author DevGuru Set Application