TAILIEUCHUNG - ASP.NET 4 Unleased - p 163

Building Custom Controls EnsureChildControls(); = value; } } protected override void CreateChildControls() { txtUserName = new TextBox(); = “txtUserName”; (txtUserName); txtPassword = new TextBox(); = “txtPassword”; = ; (txtPassword); } protected override void RenderContents(HtmlTextWriter writer) { (“float”, “left”); (); (, “3px”); (); (, ); (); (“User Name:”); (); (); (, “3px”); ();. | 1594 CHAPTER 36 Building Custom Controls EnsureChildControls value protected override void CreateChildControls txtUserName new TextBox txtUserName txtUserName txtPassword new TextBox txtPassword txtPassword protected override void RenderContents HtmlTextWriter writer float left 3px User Name 3px Password float left 3px writer From the Library of Wow eBook Overview of Custom Control Building 1595 3px writer br style clear left protected override HtmlTextWriterTag TagKey get return The control in Listing works quite nicely in all recent browsers Internet Explorer 6 Firefox Opera 8 without requiring an HTML table for layout see Figure . 36 FIGURE Performing CSS layout. From the Library of Wow eBook 1596 CHAPTER 36 Building Custom Controls View State and Control State The standard controls retain the values of .

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.