Visual web developer express edition starter kit part 2
➤ Gửi thông báo lỗi ⚠️ Báo cáo tài liệu vi phạmNội dung chi tiết: Visual web developer express edition starter kit part 2
Visual web developer express edition starter kit part 2
Chapter 5Building the Delivery Costs PageThe page that displays the delivery costs is relatively simple. However, it takes its data not from a relatio Visual web developer express edition starter kit part 2 onal database (as you have seen so far), but from an XML disk file named delivery. xml, stored in the XML-Data subfolder of the PPQ site. The good news is that you can use a data source control to access this data, and then bind a data display control to this data source control to display the data— Visual web developer express edition starter kit part 2 in much the same way as you did with a SqlDataSource control and the Gridview control in previous examples.The file delivery .xml looks like this:Visual web developer express edition starter kit part 2
l verslon=’1.0R encoding="utf-8' ?>Visual web developer express edition starter kit part 2
t Pl aceHolder control, andselect Add Content Page. Switch the new page to Design view, and save it as Del ivery. aspx using the Save Default2.aspx AsChapter 5Building the Delivery Costs PageThe page that displays the delivery costs is relatively simple. However, it takes its data not from a relatio Visual web developer express edition starter kit part 2 rom the XmlDataSource Tasks pane. Click the Browse... button next to the "Data file:" text box, and select the file delivery .xml from the XML-Data subfolder (see Figure 5-34).Figure 5-34: Selecting the delivery.xml file158Displaying Nested and XML Data2.Click OK, and then drag a Gridview control fr Visual web developer express edition starter kit part 2 om the Toolbox onto the page. In the Gridview Tasks pane, select XmlDataSourcel in the Choose Data Source drop-down list, and the Gridview shows the vVisual web developer express edition starter kit part 2
alues of the attributes in each of theVisual web developer express edition starter kit part 2
erText property to just Cost. This final column contains a value for the delivery' cost and should be displayed as a currency amount, so enter the forChapter 5Building the Delivery Costs PageThe page that displays the delivery costs is relatively simple. However, it takes its data not from a relatioChapter 5Building the Delivery Costs PageThe page that displays the delivery costs is relatively simple. However, it takes its data not from a relatioGọi ngay
Chat zalo
Facebook