// getEDITFUNDDETAILS method is displays info of fund details to using fid number which comes from //Querystring it will displyed in respective fields using data from database based on fid protected void getEditDetails(int fundID) { Objfund.Fundnumber = fundID; using (SqlDataReader dr = Objfund.getEDITFUNDDETAILS()) { if (dr.HasRows) { while (dr.Read()) { fundnametxtbox.Text = dr["FundName"].ToString(); } } } }