TAILIEUCHUNG - ASP.NET 1.1 Insider Solutions- P7

Tham khảo tài liệu ' insider solutions- p7', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 288 7 Design Issues for User Controls LISTING Continued If ScrollBars True Then sScroll yes End If Dim sHelp As String no If HelpButton True Then sHelp yes End If Because a couple of the features for dialog windows are available only in Internet Explorer and higher you next use the Browsercapabilities object exposed by the Request. Browser property to check the browser type and version see Listing . You create a Decimal floating-point value that contains the major and minor version numbers. Then provided that you haven t already done so in a previous instance of the control you build the client-side script in a String variable as you ve done in previous examples . The clientside script here appears to be a bit more complex than that in earlier examples because you have to create the features string as you go along. When the script is complete you can create the function name and parameters string and attach the whole thing to the target control in exactly the same way as in the two previous examples the code for this is not repeated here refer to Listing . LISTING Sniffing the Browser Type and Creating the Client-Side Script 1 get browser version but only if it s Internet Explorer Dim fVer As Decimal 0 If IE Then Try Dim iMajor As Integer Dim iMinor As Integer fVer . _ catch End Try End If 1 create client-side script if not already registered If Not AHHIEDlg Then 1 decide whether position is specified or centered If Center True Then sFeatures center yes Else sFeatures dialogTop _ px dialogLeft px End If Integrating Internet Explorer Dialog Windows 289 LISTING Continued sFeatures dialogHeight _ px dialogWidth _ px edge sBorder scroll _ sScroll help sHelp see if it s IE or higher If fVer Then sFeatures .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.