ArcGIS_Routing_VBNet\PrintPage.aspx.vb
' 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. ' Imports Microsoft.VisualBasic Imports System Imports System.Collections Imports System.ComponentModel Imports System.Data Imports System.Drawing Imports System.Web Imports System.Web.SessionState Imports System.Web.UI Imports System.Web.UI.WebControls Imports System.Web.UI.HtmlControls Imports ESRI.ArcGIS.ADF.Web Namespace Directions ''' <summary> ''' Summary description for PrintPage. ''' </summary> Public Partial Class PrintPage Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) DirectionsSummary.InnerHtml = TryCast(Session("Summary"), String) ' Check for existence of dataset Dim obj As Object = Session("Directions_DataTable") If Not obj Is Nothing Then ' load data into datagrid Dim dt As DataTable = TryCast(obj, DataTable) DataGrid1.DataSource = dt DataGrid1.DataBind() End If End Sub End Class End Namespace