ArcGIS_Routing_CSharp\PrintPage.aspx.cs
// Copyright 2010 ESRI // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // You may freely redistribute and use this sample code, with or // without modification, provided you include the original copyright // notice and use restrictions. // // See the use restrictions. // using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using ESRI.ArcGIS.ADF.Web; namespace Directions { /// <summary> /// Summary description for PrintPage. /// </summary> public partial class PrintPage : System.Web.UI.Page { protected void Page_Load(object sender, System.EventArgs e) { DirectionsSummary.InnerHtml = Session["Summary"] as string; // Check for existence of dataset object obj = Session["Directions_DataTable"]; if (obj != null) { // load data into datagrid DataTable dt = obj as DataTable; DataGrid1.DataSource = dt; DataGrid1.DataBind(); } } } }