try { //if related

try { //if related articles exist ? int i; for (i = 0; i < MAX_RELATED_ARTICLES && !string.IsNullOrEmpty((FindControl("txtRelated" + (i + 1).ToString()) as System.Web.UI.WebControls.TextBox).Text); i++) ; //if related articles exist and the postion of related articles is empty. if (i < MAX_RELATED_

By JKJKJKJ
January 12, 2012 16:54
2 minute read.






Be the first to know - Join our Facebook page.


try




{







//if related articles exist ?







int i;







for (i = 0; i < MAX_RELATED_ARTICLES && !string.IsNullOrEmpty((FindControl("txtRelated" + (i + 1).ToString()) as System.Web.UI.WebControls.TextBox).Text); i++) ;







//if related articles exist and the postion of related articles is empty.







if (i < MAX_RELATED_ARTICLES && string.IsNullOrEmpty(txtBeforeParagraphRelated.Text))




{




reqfBeforeParagraphGallery.Enabled =




true;




PopBox.Attributes.Add(




"class", "PopBoxError");




lblAllert.Text =




"Required field Related Articles - 'Before Paragraph' is missing.";





ClientScript.RegisterStartupScript(




this.GetType(), "key", "launchModal();", true);







return;




}




}







catch (Exception ex)




{




}




Related Content

Sarah Silverman
August 26, 2014
Jewish women take home gold at 2014 Emmys

By JTA

Israel Weather
  • 11 - 31
    Beer Sheva
    14 - 25
    Tel Aviv - Yafo
  • 14 - 27
    Jerusalem
    13 - 25
    Haifa
  • 18 - 33
    Elat
    15 - 32
    Tiberias