示例#1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        WSDBSelect.WSSuma ws = new WSDBSelect.WSSuma();
        DataSet           ds = ws.GetData();

        GridView1.DataSource = ds.Tables[0];
        GridView1.DataBind();
    }
示例#2
0
 protected void btnInsert_Click(object sender, EventArgs e)
 {
     try
     {
         WSDBSelect.WSSuma ws = new WSDBSelect.WSSuma();
         ws.InsertData(txtName.Text, txtAuthor.Text, Convert.ToInt32(txtPrice.Text), txtPublishDate.Text);
     }
     catch (Exception)
     {
         throw;
     }
 }