Admin/Form/RAdd.aspx.cs

(开头部分) 4KB

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

using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Linq;
using Models;


    public partial class RAdd : AdminBase
    {
        public int _Id=0;
        public int textnum = 0;
        public int Mtextnum = 0;

        protected void Page_Load(object sender, EventArgs e)
        {
            Response.CacheControl = "no-cache";
            if (!string.IsNullOrEmpty(Request.Params["ID"]))
            {
                _Id = int.Parse(HttpContext.Current.Request.QueryString["ID"]);
            }
            if (!Page.IsPostBack)
            {
                Entities mydb = new Entities();
                {

                    L_RForm fmRe = mydb.L_RForm.First(p => p.FrID == _Id);
                    this.Labtitle.Text = fmRe.FrName;

                    if (fmRe.FrReOk == 1)
                        CheckBox1.Checked = true;
                   else
                    CheckBox1.Checked = false;


                string a = fmRe.Fr1;
                    string av = fmRe.Fr2;

                    if (a.Length > 0)
                    {
                        a = a.Substring(0, a.Length - 1);
                        av = av.Substring(0, av.Length - 1);
                        string[] sArray = a.Split(new char[] { '|' });
                        string[] sValue = av.Split(new char[] { '|' });
                        int myint = 0;
                        textnum = 1;
                        foreach (string myStr in sArray)
                        {
                            TableRow newrow = new TableRow();
                            //newrow.Attributes.Add("Class", "hback");

                            TableCell newcell1 = new TableCell();
                            TableCell newcell2 = new TableCell();
                            textnum++;

                            Label Lab = new Label();
                            string LbId = "Lab" + textnum.ToString();
                            Lab.ID = LbId;
                            Lab.Text = myStr + ":";
后面还有 66 行代码,解锁后查看完整代码

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

AI 解读

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

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