Đang chuẩn bị liên kết để tải về tài liệu:
ASP.NET 4 Unleased - p 172

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Using Server-Side ASP .NET AJAX ’ Runat=”server” / ’ TextMode=”MultiLine” Columns=”50” Rows=”3” Runat=”server” / From the Library of Wow! | 1684 CHAPTER 38 Using Server-Side ASf.NET AJAX asp UpdatePanel id up1 Runat server ContentTemplate asp FormView id frmFeedback DataSourceId srcFeedback DefaultMode Insert Runat server InsertItemTemplate asp Label id lblName Text Name AssociatedControlID txtName Runat server asp RequiredFieldValidator id valName Text Required ControlToValidate txtName Runat server br asp TextBox id txtName Text Bind Name Runat server br br asp Label id lblComment Text Comment AssociatedControlID txtComment Runat server asp RequiredFieldValidator id valComment Text Required ControlToValidate txtComment Runat server br asp TextBox id txtComment Text Bind Comment TextMode MultiLine Columns 50 Rows 3 Runat server From the Library of Wow eBook Using the UpdatePanel Control 1685 br br asp Button id btnSubmit Text Submit CommandName Insert Runat server InsertItemTemplate asp FormView br br asp GridView id grdFeedback DataSourceID srcFeedback AllowSorting true Runat server ContentTemplate asp UpdatePanel asp SqlDataSource id srcFeedback ConnectionString ConnectionStrings con SelectCommand SELECT Id Name Comment DateSubmitted FROM Feedback InsertCommand INSERT Feedback Name Comment VALUES @Name @Comment Runat server div form body html 38 Because the UpdatePanel control in Listing 38.4 contains both the FormView and GridView you can interact with the page without performing a single postback. When you submit the form the form data is submitted back to the server using Ajax. When you sort the columns in the GridView the sorted rows are retrieved from the server through an Ajax call. The UpdatePanel control has six important properties ChildrenAsTriggers Gets or sets a Boolean value that indicates whether child controls should trigger an asynchronous postback automatically. From the Library of Wow eBook 1686 CHAPTER 38 Using Server-Side ASf.NET AJAX ContentTemplateContainer Gets the container for the UpdatePanel control s ContentTemplate. You can add controls to the ContentTemplate .

TÀI LIỆU 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.