protected void Page_Init(object sender, EventArgs e) { _element = PageElement as PageElementWithErrorDto; if (_element == null) { throw new BugException("Textbox received an incompatible page element \"" + PageElement.GetType().Name + "\""); } }
protected void Page_Init(object sender, EventArgs e) { _element = PageElement as PageElementWithErrorDto; if (_element == null) { throw new BugException("Crm literature received an incompatible page element \"" + PageElement.GetType().Name + "\""); } _controls = new List<Triple<PersonalDataSectionElements, WebControl, Label>>(); countryRegionControl = null; if (_questionnaire.QuestionnaireId == 4258) QuestionnaireID = "4259"; else QuestionnaireID = _questionnaire.QuestionnaireId.ToString(); }
public static PageElementWithErrorDto CreateErrorElement(PageDto page, string elementText, PageElementType pageElementType, int sortSequence, string errorText) { PageElementWithErrorDto retval = new PageElementWithErrorDto(elementText, true, pageElementType, page.PageId, sortSequence, 100, errorText, true, false,string.Empty); Assert.Contains(pageElementType, Constants.PageElementErrorTypes); retval = FormRegistry.PageElementDao.Create(retval); Assert.IsNotNull(retval); return retval; }