public string GetAnswerPart(AnswerData.AnswersRow a) { switch (ddlAutoAnswerNaming.SelectedValue) { case "Answer": return a.AnswerText; case "AnswerDisplayOrderNumber":/* if (!a.IsRowOrderNull()) return TrimSplit(a.AnswerDisplayOrder.ToString()); else*/ return a.DisplayOrder.ToString(); case "AnswerID": return a.IsAnswerIDTextNull() ? a.AnswerText : a.AnswerIDText; case "AnswerAlias": return a.IsAnswerAliasNull() ? a.AnswerText : a.AnswerAlias; case "SliderRange": return a.IsSliderRangeNull() ? a.AnswerText : a.SliderRange; case "SliderValue": return a.IsSliderValueNull() ? a.AnswerText : a.SliderValue.ToString(); case "SliderMin": return a.IsSliderMinNull() ? a.AnswerText : a.SliderMin.ToString(); case "SliderMax": return a.IsSliderMaxNull() ? a.AnswerText : a.SliderMax.ToString(); case "SliderAnimate": return a.IsSliderAnimateNull() ? a.AnswerText : a.SliderAnimate.ToString(); case "SliderStep": return a.IsSliderAnimateNull() ? a.AnswerText : a.SliderStep.ToString(); default: return "Invalid DDl Value"; } }