Survey Viewer Web Control Properties


The following is a list of Survey Viewer Web Control properties:

PropertyDescription
IDThe web control unique ID
XmlFilePathThe file path of the XML definition file.
XmlSets the XML definition of the survey. Use this property to directly set the XML to the control without using physical XML file.
SurveyGets or sets the survey object. Use this property to directly set and bind the survey object to the web control
OutputFolderThe folder path to save the user responses to the survey.
CssClassThe CSS class name to be applied to the survey viewer web control.
AuthTypeThe authentication method used to ensure that a single user cannot take the survey more than once. This can take values: None, Sessions, Cookies or All.
CurrentPageIndexGets the current active survey page index.
PagesCountGets the number of the survey pages.
NextButtonTextGets or sets the Next button text. The default text is "Next".
PreviousButtonTextGets or sets the Previous button text. The default text is "Previous".
FinishButtonTextGets or sets the Finish button text. The default text is "Finish".
ResponsesCountGets or override the number of the survey responses. Use this property if you don't provide responses folder path to the control and you want the web control to check the survey quota to allow/prevent any more responses to the survey.
PreviewModeGets or sets if the viewer is in the preview mode or not. If true, the control will not collect any responses (i.e. no responses will be generated or saved). Use this property for adding preview functionality to your surveys.
MediaUploadPathGets or sets the path where the media files will be uploaded.
SkipStartPageForce the web control to skip the first page of the survey when displaying it to the end user.
IsStartPageIs the current active survey page is the first page.
IsFinishPageIs the current active survey page is the finish/end page.
IsStartOrFinishPageIs the current active survey page is the start or end page.
IsLastSurveyPageBeforeFinishIs the current active survey page is the last end page.
UsernameGets or sets the current user’s name who answers the survey (Default value is "Anonymous"). This value will be added to the response XML after the user answer the survey.
RestoreLastAnsweredPageGets or set if restoring the page of the last answered question is required
IgnoreStoppingPageOnSaveGets or set if responses should be saved till last page answered regardless where the user is stopping at

See Also