39 lines
1.4 KiB
C#
39 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using System.Text;
|
|
|
|
namespace Mtxfw.shop
|
|
{
|
|
public partial class Telesa1 : System.Web.UI.MasterPage
|
|
{
|
|
public Dictionary<int, string> Menu = null;
|
|
public Mtxfw.DAL.Article daoArt = new Mtxfw.DAL.Article();
|
|
public Mtxfw.Utility.Config config = new Mtxfw.Utility.Config();
|
|
public Mtxfw.DAL.P_Product daoProduct = new Mtxfw.DAL.P_Product();
|
|
public Mtxfw.DAL.P_Category daoCategory = new Mtxfw.DAL.P_Category();
|
|
public Mtxfw.DAL.forum daoforum = new Mtxfw.DAL.forum();
|
|
public string cartcount = "0";
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
}
|
|
|
|
|
|
protected String GetProvince()
|
|
{
|
|
StringBuilder sb = new StringBuilder();
|
|
Mtxfw.DAL.province daoPro = new Mtxfw.DAL.province();
|
|
System.Data.DataSet Ds = daoPro.GetCacheList("", "1=1 Order by Id Asc", "Province");
|
|
System.Data.DataTable Dt = (Ds != null && Ds.Tables[0] != null) ? Ds.Tables[0] : null;
|
|
foreach (System.Data.DataRow Dr in Dt.Rows)
|
|
{
|
|
sb.Append("<option value=\"" + Dr["ProvinceID"] + "\">" + Dr["ProvinceName"] + "</option>\r\n");
|
|
}
|
|
return sb.ToString();
|
|
}
|
|
|
|
|
|
}
|
|
} |