Code
string sid = this.Hidden1.Value;//风格ID
string size = this.fontSize.Value;//大小
string type = this.fontType.Value;//字体
string color = this.hddColor.Value;//颜色
string border = this.ddlBorder.SelectedValue;//边框ID
string ispo = "";//纸张面
if (this.radGJ.Checked)
{
ispo = "1";
}
else
{
ispo = "0";
}
Hashtable hashtab = HttpContext.Current.Cache.Get("DevelopingAlbum" + User.UserID) as Hashtable;
if (hashtab != null)
{
HttpContext.Current.Cache.Remove("DevelopingAlbum" + User.UserID);
}
hashtab = new Hashtable();
Hashtable hstab = new Hashtable();
hstab.Add("DevelopAlbumStyleID", sid);
hstab.Add("Font", type);
hstab.Add("FontSize", size);
hstab.Add("Color", color);
hstab.Add("BorderID", border);
hstab.Add("ispo", ispo);
HttpContext.Current.Cache.Add("DevelopingAlbum" + User.UserID, hstab, null, DateTime.MaxValue, new TimeSpan(0, 2, 0, 0, 0), System.Web.Caching.CacheItemPriority.NotRemovable, null);
//Response.Redirect("DevelopAlbum.aspx");
//读取缓存数据
Hashtable sb = HttpContext.Current.Cache.Get("DevelopingAlbum" + User.UserID) as Hashtable;
this.lblaa.Text = "";
this.lblaa.Text += sb["DevelopAlbumStyleID"].ToString() + "|";
this.lblaa.Text += sb["Font"].ToString() + "|";
this.lblaa.Text += sb["FontSize"].ToString() + "|";
this.lblaa.Text += sb["Color"].ToString() + "|";
this.lblaa.Text += sb["BorderID"].ToString() + "|";
this.lblaa.Text += sb["ispo"].ToString() + "|";
string sid = this.Hidden1.Value;//风格ID
string size = this.fontSize.Value;//大小
string type = this.fontType.Value;//字体
string color = this.hddColor.Value;//颜色
string border = this.ddlBorder.SelectedValue;//边框ID
string ispo = "";//纸张面
if (this.radGJ.Checked)
{
ispo = "1";
}
else
{
ispo = "0";
}
Hashtable hashtab = HttpContext.Current.Cache.Get("DevelopingAlbum" + User.UserID) as Hashtable;
if (hashtab != null)
{
HttpContext.Current.Cache.Remove("DevelopingAlbum" + User.UserID);
}
hashtab = new Hashtable();
Hashtable hstab = new Hashtable();
hstab.Add("DevelopAlbumStyleID", sid);
hstab.Add("Font", type);
hstab.Add("FontSize", size);
hstab.Add("Color", color);
hstab.Add("BorderID", border);
hstab.Add("ispo", ispo);
HttpContext.Current.Cache.Add("DevelopingAlbum" + User.UserID, hstab, null, DateTime.MaxValue, new TimeSpan(0, 2, 0, 0, 0), System.Web.Caching.CacheItemPriority.NotRemovable, null);
//Response.Redirect("DevelopAlbum.aspx");
//读取缓存数据
Hashtable sb = HttpContext.Current.Cache.Get("DevelopingAlbum" + User.UserID) as Hashtable;
this.lblaa.Text = "";
this.lblaa.Text += sb["DevelopAlbumStyleID"].ToString() + "|";
this.lblaa.Text += sb["Font"].ToString() + "|";
this.lblaa.Text += sb["FontSize"].ToString() + "|";
this.lblaa.Text += sb["Color"].ToString() + "|";
this.lblaa.Text += sb["BorderID"].ToString() + "|";
this.lblaa.Text += sb["ispo"].ToString() + "|";