-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.aspx.cs
53 lines (46 loc) · 1.55 KB
/
default.aspx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#region XD World Recipe V 2.8
// FileName: default.cs
// Author: Dexter Zafra
// Date Created: 5/19/2008
// Website: www.ex-designz.net
#endregion
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using XDRecipe.UI;
using XDRecipe.BL;
using XDRecipe.BL.Providers.Recipes;
using XDRecipe.Common;
using XDRecipe.Model;
using XDRecipe.Common.Utilities;
public partial class _default : BasePage
{
protected void Page_Load(Object sender, EventArgs e)
{
GetMetaKeywords();
lbltotalRecipe.Text = "There are " + string.Format("{0:#,###}",
Blogic.ActionProcedureDataProvider.GetHomepageTotalRecipeCount) + " recipes in " + Blogic.ActionProcedureDataProvider.GetHomepageTotalCategoryCount + " categories";
Myranimage.ImageUrl = Utility.GetRandomImage;
BindList();
}
private void BindList()
{
MainCourseCategory.DataSource = MainCourseRecipeCategoryProvider.GetMainCourseCategory();
MainCourseCategory.DataBind();
EthnicRegionalCat.DataSource = EthnicRecipeCategoryProvider.GetEthnicCategory();
EthnicRegionalCat.DataBind();
}
private void GetMetaKeywords()
{
Page.Header.Title = "XD Portal";
HtmlMeta metaTag = new HtmlMeta();
metaTag.Name = "Keywords";
metaTag.Content = "chinese recipe, barbeque recipe, seafoods recipes, salad recipe, mexican recipe";
this.Header.Controls.Add(metaTag);
}
}