YKT_EShop/_Template/Default/product_ask.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YKT_Model;
using YKT_Common;
using YKT_BLL;
namespace YKT_EShop._Template.Default
{
public partial class product_ask : BasicPage
{
public ModelProduct product = new ModelProduct();
int productid = 0;
protected Button btnSave;
protected HiddenField hfID;
protected TextBox txtAskName;
protected TextBox txtAskContent;
protected override void OnInit(EventArgs e)
{
this.btnSave.Click += new EventHandler(btnSave_Click);
base.OnInit(e);
}
protected void Page_Load(object sender, EventArgs e)
{
if (!this.check_member_login())
{
Response.Redirect("/login.aspx?returnurl=" + HTTPS.GetCurrentUrl());
}
if (!this.IsPostBack)
{
productid = Input.SetInt(Request["productid"]);
if (productid > 0)
{
this.hfID.Value = productid.ToString();
product = new BLLProduct().GetModel(productid);
}
}
}
void btnSave_Click(object sender, EventArgs e)
{
int id = Input.SetInt(this.hfID.Value);
if (Input.SqlFilter(Input.SetString(txtAskName.Text)) || Input.SqlFilter(Input.SetString(txtAskContent.Text)))
{
Response.Redirect(HTTPS.ComeUrl);
return;
}
string AskName = Input.SetString(txtAskName.Text);
string AskContent = Input.SetString(txtAskContent.Text);
if (id > 0)
{
BLLProductAsk bll = new BLLProductAsk();
ModelProductAsk model = new ModelProductAsk();
model.AskTitle = AskName;
model.AskContent = AskContent;
model.MemberID = user.ID;
后面还有 10 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。