aspnet-ej1-demos/Gantt/XMLBinding.aspx.cs

28 строки
896 B
C#

#region Copyright Syncfusion Inc. 2001-2022.
// Copyright Syncfusion Inc. 2001-2022. All rights reserved.
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// licensing@syncfusion.com. Any infringement will be prosecuted under
// applicable laws.
#endregion
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebSampleBrowser.Gantt
{
public partial class XMLBinding : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
DataSet data = new DataSet();
data.ReadXml(Server.MapPath("~/App_Data/GanttXML.xml"));
this.GanttXMLBinding.DataSource = data;
this.GanttXMLBinding.DataBind();
}
}
}