示例#1
0
 protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     GridView1.PageIndex = e.NewPageIndex;
     Refrence.WebService2 web = new Refrence.WebService2();
     GridView1.DataSource = web.SelectDoc();
     GridView1.DataBind();
 }
示例#2
0
 protected void Button3_Click(object sender, EventArgs e)
 {
     Refrence.WebService2 web = new Refrence.WebService2();
     web.DeleteDoc(int.Parse(TextBox1.Text));
     GridView1.DataSource = web.SelectDoc();
     GridView1.DataBind();
     TextBox1.Text = "";
 }
示例#3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Refrence.WebService2 web = new Refrence.WebService2();
            GridView1.DataSource = web.SelectDoc();
            GridView1.DataBind();

            times.Time t = new times.Time();
            Label11.Text = t.GetServerLocalTime().ToString();
        }
示例#4
0
 protected void Button2_Click(object sender, EventArgs e)
 {
     if (FileUpload1.HasFile)
     {
         string fileName  = FileUpload1.FileName;
         string fileNames = Path.GetFileName(FileUpload1.PostedFile.FileName);
         FileUpload1.PostedFile.SaveAs(Server.MapPath("~/images/") + fileNames);
         Refrence.WebService2 web = new Refrence.WebService2();
         web.UpdateDoc(int.Parse(TextBox1.Text), "~/images/" + fileName, TextBox2.Text, TextBox6.Text, TextBox7.Text, TextBox9.Text, TextBox8.Text, TextBox4.Text, TextBox5.Text, TextBox3.Text);
         GridView1.DataSource = web.SelectDoc();
         GridView1.DataBind();
     }
     TextBox1.Text = "";
     TextBox2.Text = "";
     TextBox3.Text = "";
     TextBox4.Text = "";
     TextBox5.Text = "";
     TextBox6.Text = "";
     TextBox7.Text = "";
     TextBox8.Text = "";
     TextBox9.Text = "";
 }
示例#5
0
 protected void LinkButton1_Click(object sender, EventArgs e)
 {
     Refrence.WebService2 web = new Refrence.WebService2();
     GridView1.DataSource = web.SelectDoc();
     GridView1.DataBind();
 }