コード例 #1
0
ファイル: AddReq.aspx.cs プロジェクト: cayrosuke/itservice
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                g.fileName = "";
            }

            CheckBox1.Checked = true;

            if (!IsPostBack)
            {
                bl add = new bl();

                try
                {
                    int refno = add.refret();
                    TextBox1.Text    = refno.ToString();
                    TextBox1.Enabled = false;
                }
                catch
                {
                    TextBox1.Text = "";
                }
            }
            TextBox3.Text = DateTime.Now.ToString();
            //TextBox3.Enabled = false;
            //add here
        }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         bl  add   = new bl();
         int refno = add.refret();
         TextBox1.Text    = refno.ToString();
         TextBox1.Enabled = false;
     }
     TextBox1.Attributes.Add("onKeyDown()", "KeyDownHandler()");
 }
コード例 #3
0
        protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
        {
            TextBox2.Text = "";
            TextBox3.Text = "";
            TextBox4.Text = "";

            TextBox2.Focus();
            TextBox6.Text = "";


            Calendar1.SelectedDate = DateTime.Today;


            bl refa = new bl();

            int refno = refa.refret();

            TextBox1.Text = refno.ToString();
        }
コード例 #4
0
ファイル: AddReq.aspx.cs プロジェクト: cayrosuke/itservice
        protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
        {
            TextBox2.Text = "";
            DropDownList6.SelectedItem.Value = "Meet Hours";
            TextBox4.Text = "";
            TextBox7.Text = "";
            TextBox2.Focus();
            TextBox6.Text     = "";
            CheckBox1.Checked = true;



            bl refa = new bl();

            try
            {
                int refno = refa.refret();
                TextBox1.Text = refno.ToString();
            }
            catch {
                TextBox1.Text = "";
            }
        }