// Spludlow Software // Copyright © Samuel P. Ludlow 2020 All Rights Reserved // Distributed under the terms of the GNU General Public License version 3 // Distributed WITHOUT ANY WARRANTY; without implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE // https://www.spludlow.co.uk/LICENCE.TXT // The Spludlow logo is a registered trademark of Samuel P. Ludlow and may not be used without permission // v1.14 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; public partial class DVBChan : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { long channelId = Int64.Parse(this.Request.QueryString["ChannelId"]); Spludlow.Video.VideoData videoData = new Spludlow.Video.VideoData(); DataRow channelRow = videoData.Channels.Rows.Find(channelId); this.GridViewChannel.DataSource = Spludlow.Data.ADO.Swivel(channelRow); this.GridViewChannel.DataBind(); DataView view = new DataView(videoData.Programmes); view.RowFilter = "ChannelId = " + channelId; view.Sort = "StartDate"; this.GridViewProgrammes.DataSource = view; this.GridViewProgrammes.DataBind(); } }