Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Common.htmTags htmlTags = new Common.htmTags();
                string         title    = htmlTags.getTitle(this.GetType().BaseType.Name);
                captionName.Text = title;
                titleName.Text   = title;

                List <Entity.DataEntity> records = new List <Entity.DataEntity>();
                for (int i = 0; i < 10; i++)
                {
                    Entity.DataEntity record = new Entity.DataEntity();
                    record.check = true;
                    record.key   = i.ToString();
                    record.data  = string.Format("{0}-Data", i);
                    records.Add(record);
                }
                gvData01.DataSource = records;
                gvData01.DataBind();
                gvData02.DataSource = records;
                gvData02.DataBind();
                gvData03.DataSource = records;
                gvData03.DataBind();
                gvData04.DataSource = records;
                gvData04.DataBind();
            }
        }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Common.htmTags htmlTags = new Common.htmTags();
         string         title    = htmlTags.getTitle(this.GetType().BaseType.Name);
         captionName.Text = title;
         titleName.Text   = title;
     }
 }
Beispiel #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Common.htmTags htmlTags = new Common.htmTags();
                string         title    = htmlTags.getTitle(this.GetType().BaseType.Name);
                captionName.Text = title;
                titleName.Text   = title;

                try
                {
                    records           = setData();
                    lvData.DataSource = records;
                    lvData.DataBind();
                } catch (Exception ex)
                {
                    Console.WriteLine("例外エラーが発生しました。" + ex.ToString());
                }
            }
        }