I have a web service and I have two textboxes and a button. I want to read data from web service.When I push the button I use a grid view to reach this aim. Is there another way to get data from web service that I can eliminate the gridview? Here is my code:
protected void btnSearch_Click(object sender, EventArgs e) { DataSet ds1 = ws.daryafte_view_Personel_Information_with_parameter_cu_personal_number_Taradod(txtCodePers.Text.Trim()); this.GridView1.DataSource = ds1; foreach (System.Data.DataTable tabale1 in ds1.Tables) { foreach (DataRow dr in tabale1.Rows) { txtName.Text = dr["tp_firstabbr_name"].ToString().Trim() + " " + dr["tp_familyoffice_name"].ToString().Trim(); txtMoavenat.Text = dr["tp_sbu"].ToString().Trim(); Image1.ImageUrl = "~/image/" + txtCodePers.Text + ".jpg"; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)