TAILIEUCHUNG - Lập trình .net 4.0 và visual studio 2010 part 37

Trong các phiên bản trước của , khi liên tiếp được chọn trong một ListView (hoặc GridView) và người dùng di chuyển đến một trang khác, lựa chọn đã được duy trì trên trang tiếp theo. Đây có thể là tin xấu nếu bạn sau đó sử dụng lựa chọn này để thực hiện một hành động trên hồ sơ được chọn. | CHAPTER 10 Further Control Enhancements There are a number of control enhancements and a couple of miscellaneous new controls as well. Wizard Control The Wizard control now contains new templating functionality LayoutTemplate . ListView Enhancements In previous versions of when a row was selected within a ListView or GridView and the user moved to another page the selection was maintained on the next page. This can be bad news if you then use this selection to perform an action on the selected record. resolves this problem with the new EnablePersistedSelection property. If EnablePersistedSelection is set to True then row selection is maintained using the datakey of each item. Another welcome change is that the declaration of ListViews has been much simplified. The following code shows how a ListView control had to be declared previously asp ListView ID lstView runat server LayoutTemplate asp PlaceHolder ID itemPlaceholder runat server asp PlaceHolder LayoutTemplate ItemTemplate Eval firstname ItemTemplate asp ListView allows you to do the following asp ListView ID ListView1 runat server ItemTemplate Eval firstname ItemTemplate asp ListView GridView The GridView control now supports persisted selection see previous example and offers the ability to style header columns when they are sorted and contains improved support for working with ViewState disabled. CompareValidator The CompareValidator now supports the comparison of Time and DateTime values. 244 CHAPTER 10 Query Extender Query extender is a new control that aims to make the filtering of data easier by providing a declarative query syntax that you can link to the Entity or LinqDataSource controls. Browser capability files Browser capability files are to determine how best to render content for individual browsers and are held in XML format. If you feel the need perhaps to override the rendering capabilities for iPhones for example you can create your own browser

Đã 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.