源代码/ST_FlowerPrearrange/ST_AddToCart.aspx.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace ST_GROUP.FlowerPrearrange
{
	/// <summary>
	/// ST_AddToCart 的摘要说明。
	/// </summary>
	public partial class ST_AddToCart : System.Web.UI.Page
	{
        // 下载于www.51aspx.com
		ST_Flower ST_myFlower=new ST_Flower();
		protected void Page_Load(object sender, System.EventArgs e)
		{
			// 在此处放置用户代码以初始化页面
			int ST_FlowerId;
			HttpCookie ST_cookie;
			bool ST_tempbl=false;
			ErrMsg.Visible =false;
			string ST_tempstr;
			if(!IsPostBack)
			{
				if(Object.Equals(Session["UserName"],null))
				{
					Response.Redirect("ST_Error.aspx");
				}
				else
				{
					if(!Object.Equals(Request.QueryString["FlowerId"],null))
				    {
					
						ST_FlowerId=int.Parse(Request.QueryString["FlowerId"].ToString());
						if(Object.Equals(Request.Cookies["ShopFlowerCart"],null)) 
						{
							ST_cookie = new HttpCookie("ShopFlowerCart");
						}
						else
							ST_cookie=Request.Cookies["ShopFlowerCart"];
						for(int i=0;i<ST_cookie.Values.Count;i++)
						{
							if(!Object.Equals(ST_cookie.Values.AllKeys[i],null))
							{
								ST_tempstr=ST_cookie.Values.AllKeys[i].ToString();
								if(ST_tempstr.Trim()!="")
								{
									if(ST_FlowerId==int.Parse(ST_cookie.Values.AllKeys[i]))
									{
										ST_tempbl=true;
										break;
									}
								}
							}
后面还有 225 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。