Wrox Professional Web Parts and Custom Controls with ASP.NET 2.0 phần 5

Phần quan trọng của VS .NET là các công nghệ mới với trung tâm là .NET Framework - tập các tính năng Windows được xây dựng trên nền tảng môi trường thực thi ngôn ngữ chung (CLR – Common Language Runtime), trên đó là các lớp thư viện dùng để xây dựng ứng dụng Windows, ứng dụng web và dịch vụ web XML. | Building Web Parts TitleBar then all the verbs in your Verb menu display in the title bar as hyperlinks. Because the Verb menu always includes the Web Part default verbs . Close Minimize setting WebPartVerbRenderMode to TitleBar can give you a very long title bar and a very wide Web Part. Finding out about Your Web Part There are many aspects of your Web Part that you won t be able to determine at design time. For example the developer that adds your Web Part to a page will set the Web Part s name. Web Parts have a number of properties that let you determine what those settings are at run time. They are DisplayTitle The title as currently displayed on the page reflecting the value of the Title property plus any modification changes or personalizations. This property is read-only. Hidden When True indicates that the part is not visible in a WebPartZone when the page is being displayed in the browser. You can t use the Visible property to suppress the display of a Web Part when the Web Part is in a WebPartZone. You can however use the Hidden property to suppress the Web Part s display when the Web Part is in a WebPartZone setting the Hidden property in a Web Part that s not in a WebPartZone has no effect on the Web Part . Effectively this property provides another state for a Web Part in addition to the closed minimized and browse states available through the Verb menu. A hidden custom control does not appear on the page is not minimized when a Web Part is hidden the title bar for the custom control is not displayed unlike a minimized control and is not closed the Web Part does not appear in the catalog for the page . When the page is viewed in one of the customization modes the text Hidden appears in the title bar to indicate the part s state. IsClosed True when your Web Part is closed. IsShared IsStandalone If a WebPart is in a WebPartZone that is when a WebPart can be customized then IsShared is True if the Web Part is visible to all the users of the page .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã 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.