using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class Sitemap : System.Web.UI.Page { /****************************************************************************************************/ /// /// Handles the Load event of the Page control. /// /// The source of the event. /// The instance containing the event data. protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) ListDynamicMedia(); } /****************************************************************************************************/ /// /// Lists the dynamic media. /// private void ListDynamicMedia() { clsBlog blog = new clsBlog(); ltBlogs.Text = blog.ListForSitemap(); clsNews news = new clsNews(); ltNews.Text = news.ListForSitemap(); } }