XML with ASP using ASP:DataList Please use speaker notes for additional information!
Stephen Daniels Sports Reporter Al Richards Engineering Consultant Jennifer Ames Foreign Consultant Sarah Grant Scientific Web Carl Hersey Foreign Consultant 60000
sub Page_Load if Not Page.IsPostBack then dim payrollData=New DataSet payrollData.ReadXml(MapPath("payroll.xml")) payrollSet.DataSource=payrollData payrollSet.DataBind() end if end sub Employee List <asp:DataList id="payrollSet" gridlines="both" runat="server"> Last Name / First Name / Dept / Job / Salary /
sub Page_Load if Not Page.IsPostBack then dim payrollData=New DataSet payrollData.ReadXml(MapPath("payroll.xml")) payrollSet.DataSource=payrollData payrollSet.DataBind() end if end sub Employee List <asp:DataList id="payrollSet" gridlines="both" runat="server"> Employees, has a Job of: in Dept: with a Salary of:
sub Page_Load if Not Page.IsPostBack then dim payrollData=New DataSet payrollData.ReadXml(MapPath("payroll.xml")) payrollSet.DataSource=payrollData payrollSet.DataBind() end if end sub Employee List <asp:DataList id="payrollSet" gridlines="both" runat="server"> Last Name First Name Dept Job Salary
sub Page_Load if Not Page.IsPostBack then dim optionData=New DataSet optionData.ReadXml(MapPath("bccopt.xml")) optionSet.DataSource=optionData optionSet.DataBind() end if end sub Option List <asp:DataList id="optionSet" gridlines="both" runat="server"> Name Advisor
Programming Grocer Webmaster Grocer Networking Arruda Business Information Grocer Multimedia/Internet Vieira Computer Science Ferreira Information Systems Grocer Accounting Garand
Marketing Management Leonard Retail Management Dickens Business Administration Leonard
Computer Information Systems Career Programming Grocer Webmaster Grocer Networking Arruda Business Information Grocer Multimedia/Internet Vieira Transfer
Computer Science Ferreira Information Systems Grocer Business Career Accounting Garand Marketing Management Leonard Retail Management Dickens Transfer Business Administration Leonard
sub Page_Load if Not Page.IsPostBack then dim optionData=New DataSet optionData.ReadXml(MapPath("bccoptions.xml")) optionSet.DataSource=optionData.Tables("option") optionSet.DataBind() end if end sub Option List <asp:DataList id="optionSet" gridlines="both" runat="server"> Name Advisor