private void BindDropdownListbox() { try { ResourceClass.GetResources res = new ResourceClass.GetResources(); lblProjectStatus.Text = res.LoadResource("ProjectStatus"); lblHeading.Text = res.LoadResource("projListingHeading"); drpStatus.Items.Insert(0, res.LoadResource("All")); drpStatus.Items.Insert(1, res.LoadResource("Inprogress")); drpStatus.Items.Insert(2, res.LoadResource("Completed")); } catch (Exception ex) { lblMessage.Text = "BindDropdownListbox Error : " + ex.Message; } }
private string GenerateURL(Project_Listing lstProj) { Uri lappiaUri = Page.Request.Url; string url = string.Empty; try { string lblPage = res.LoadResource("Pages"); if (lappiaUri.AbsoluteUri.EndsWith(".aspx")) { url = String.Format("<a href='{0}'>{1}</a>", "/Projects/Detail?projID=" + lstProj.Hanke_ID, lstProj.Nimi); } else { if ((uint)System.Globalization.CultureInfo.CurrentUICulture.LCID == 1033) { url = String.Format("<a href='{0}'>{1}</a>", SPContext.Current.Web.Url + "/Projects/Detail?projID=" + lstProj.Hanke_ID, lstProj.Nimi); } else if ((uint)System.Globalization.CultureInfo.CurrentUICulture.LCID == 1035) { url = String.Format("<a href='{0}'>{1}</a>", SPContext.Current.Web.Url + "/Projects/Detail?projID=" + lstProj.Hanke_ID, lstProj.Nimi); } } } catch (Exception ex) { lblMessage.Text = "BindProjects Error : " + ex.Message; } return(url); }
private void BindResources() { try { ResourceClass.GetResources res = new ResourceClass.GetResources(); lblTarget.Text = res.LoadResource("lblTarget"); lblFinding.Text = res.LoadResource("lblFinding"); lblSupervisor.Text = res.LoadResource("lblSupervisor"); lblOurPartners.Text = res.LoadResource("lblOurPartners"); lblTimeTable.Text = res.LoadResource("lblTimeTable"); lblMoreInfo.Text = res.LoadResource("lblMoreInfo"); lblWebsite.Text = res.LoadResource("lblWebsite"); lblSourceFinding.Text = res.LoadResource("lblSourceFinding"); lblLogo.Text = res.LoadResource("lblLogo"); lblAttachments.Text = res.LoadResource("lblAttachments"); lblHeading.Text = res.LoadResource("projListingHeading"); } catch (Exception ex) { lblMessage.Text = "BindResources Error : " + ex.Message; } }