protected string GetBismVerse(int quranid, int suraID) { bool locIstranslation = false; locIstranslation = int.Parse(hdnIsTranslation.Value) > 0; string res = string.Empty; this.suraOrder = int.Parse(hdnsuraOrder.Value); if ((this.suraOrder != 1) && (this.suraOrder != 9)) { res = QuranVerse.GetVerseBism(this.siteID, quranid, locIstranslation); } return(res); }
private void BindVrses() { List <iQuranSearch> iSrchList = null; // Get the whole Sura without paging int pageNumber = 0; bool IsTranslation = false; Quran q = new Quran(this.siteID, this.quranID); IsTranslation = !q.IsDefault; QuranSura qSura = new QuranSura(this.siteID, this.suraID); this.suraOrder = qSura.SuraOrder; hdnsuraOrder.Value = this.suraOrder.ToString(); iSrchList = iQuranSearch.GetFrontEndPage_iSura(this.siteID, this.quranID, this.suraID, this.verseID, pageNumber, IsTranslation); rptVerses.DataSource = iSrchList; rptVerses.DataBind(); if (iSrchList.Count > 0) { if ((this.suraOrder != 1) && (this.suraOrder != 9)) { litBism.Text = QuranVerse.GetVerseBism(this.siteID, this.quranID, IsTranslation); divBism.Visible = true; litBism.Visible = true; } } if (iSrchList.Count > 0) { rptVerses.Visible = true; string info = string.Empty; CultureInfo defaultCulture = SiteUtils.GetDefaultUICulture(); info = ResourceHelper.GetMessageTemplate(defaultCulture, "SuraViewSearchInfo.config"); litSearchDescription.Text = string.Format( defaultCulture, info, qSura.Title, qSura.SuraOrder, qSura.VersesCount, this.verseOrder); litSearchDescription.Visible = true; divDescription.Visible = true; lblmessage.Visible = false; } else { rptVerses.Visible = false; lblmessage.Visible = true; lblmessage.Text = Resources.iQuranMessagesResources.NoSearchResult + "<br /><br />"; } }