private void BindGrid(bool refreshDB) { _model = UserrModel.LoadModel(); DSUserr dsUser = _model.GetDataSet(); const int RESET_PAGE_INDEX = 0; if (refreshDB) { uwgUserr.Behaviors.Paging.PageIndex = RESET_PAGE_INDEX; _model.Refresh(); divQuery.InnerHtml = _model.QuerySentence; dsUser = _model.GetDataSet(); string cvPath = WebConfigurationManager.AppSettings["CV_PATH"]; foreach (DSUserr.T_UserrRow rUserr in dsUserr.T_Userr) { rUserr.DETAYLAR = string.Format"<input type=\"button\" value=\"Details\" önclick=\"openDetaylar({0})\" class=\"gridButton\"/>", rUserr.Userr_NO); string[] filename = Directory.GetFiles(cvPath, rUserr.Userr_NO + ".*"); if (filename.Length > 0) { rUserr.CV_1 = string.Format"<input type=\"button\" value=\"CV_1\" önclick=\"openDetaylar({0})\" class=\"gridButton\"/>",Path.GetFileName(filename[0])); } filename = Directory.GetFiles(cvPath,rUserr.Userr_NO + CV_original +".*"); if (filename.Length > 0) { rUserr.CV_2 = string.Format"<input type=\"button\" value=\"CV_2\" önclick=\"openDetaylar({0})\" class=\"gridButton\"/>", Path.GetFileName(filename[0])); } } } uwgUserr.DataSource = dsUserr.T_Userr; uwgUserr.DataBind(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)