if (e.CommandName == "Edit") { LinkButton LinkButton1 = (LinkButton)e.CommandSource; GridViewRow Gr = ((GridViewRow)LinkButton1.NamingContainer); int Id = Convert.ToInt32(GridView1.DataKeys[Gr.RowIndex].Values["ID"].ToString()); Label Id1 = (Label)Gr.FindControl("Lid"); // id =int.Parse(Id1.Text); Label Name = (Label)Gr.FindControl("Lapplication"); Label Father = (Label)Gr.FindControl("Lfather"); Label Sex = (Label)Gr.FindControl("Lsex"); Label DOB = (Label)Gr.FindControl("Ldob"); Label Address = (Label)Gr.FindControl("Laddress"); Label Phone = (Label)Gr.FindControl("Lphone"); Label Marks = (Label)Gr.FindControl("Lmarks"); Label Group= (Label)Gr.FindControl("Lgroup"); Label City = (Label)Gr.FindControl("Lcity"); Image Photo = (Image)Gr.FindControl("Lphoto"); TextBox1.Text = Id1.Text; TextBoxApplication.Text = Name.Text; TextBoxFather.Text = Father.Text; RadioButtonListSex.Text=Sex.Text; TextBoxAddress.Text=Address.Text; TextBoxPhone.Text=Phone.Text; TextBoxMarks.Text=Marks.Text; RadioButtonList2.Text=Group.Text; DropDownListCity.Text=City.Text; // FileUploadPassport.FileName=Photo.???????? GridBind(); }
if (FileUpload1.HasFile) { string fileName = FileUpload1.FileName;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)