public void DataBindTemplate(object sender, EventArgs e)
        {
            PlaceHolder templatePlaceHolder = sender as PlaceHolder;
            PollAnswerTemplateContainer container = templatePlaceHolder.NamingContainer as PollAnswerTemplateContainer;
            PollAnswer item = (PollAnswer)container.Parent;            

            Literal image = new Literal();

            image.Text = "<img src=\"resources/images/" + container.Item.Text.ToString() + ".jpg\" + alt=''" + "height='80' />";

            Obout.Interface.OboutRadioButton OboutRadioButton1 = new Obout.Interface.OboutRadioButton();

            OboutRadioButton1.ID = "OboutRadioButton1";
            OboutRadioButton1.Text = container.Item.Text.ToString();
            OboutRadioButton1.GroupName = "PollItem";

            templatePlaceHolder.Controls.Add(image);
            templatePlaceHolder.Controls.Add(OboutRadioButton1);
        }
        public void DataBindTemplate(object sender, EventArgs e)
        {
            PlaceHolder templatePlaceHolder       = sender as PlaceHolder;
            PollAnswerTemplateContainer container = templatePlaceHolder.NamingContainer as PollAnswerTemplateContainer;
            PollAnswer item = (PollAnswer)container.Parent;

            Literal image = new Literal();

            image.Text = "<img src=\"resources/images/" + container.Item.Text.ToString() + ".jpg\" + alt=''" + "height='80' />";

            Obout.Interface.OboutRadioButton OboutRadioButton1 = new Obout.Interface.OboutRadioButton();

            OboutRadioButton1.ID        = "OboutRadioButton1";
            OboutRadioButton1.Text      = container.Item.Text.ToString();
            OboutRadioButton1.GroupName = "PollItem";

            templatePlaceHolder.Controls.Add(image);
            templatePlaceHolder.Controls.Add(OboutRadioButton1);
        }
        public void InstantiateIn(Control container)
        {
            PlaceHolder templatePlaceHolder = new PlaceHolder();
            container.Controls.Add(templatePlaceHolder);

            Literal div = new Literal();
            div.Text = "<div class=\"Q4\">";

            Obout.Interface.OboutRadioButton radio81 = new Obout.Interface.OboutRadioButton();
            radio81.ID = "OboutRadioButton81";
            radio81.GroupName = "g6";
            radio81.Text = "Strongly Disagree";
            radio81.Width = 125;

            Obout.Interface.OboutRadioButton radio82 = new Obout.Interface.OboutRadioButton();
            radio82.ID = "OboutRadioButton82";
            radio82.GroupName = "g6";
            radio82.Text = "Disagree";
            radio82.Width = 75;

            Obout.Interface.OboutRadioButton radio83 = new Obout.Interface.OboutRadioButton();
            radio83.ID = "OboutRadioButton83";
            radio83.GroupName = "g6";
            radio83.Text = "Agree";
            radio83.Width = 65;

            Obout.Interface.OboutRadioButton radio84 = new Obout.Interface.OboutRadioButton();
            radio84.ID = "OboutRadioButton84";
            radio84.GroupName = "g6";
            radio84.Text = "Strongly Agree";
            radio84.Width = 100;

            CustomValidator customValidator8 = new CustomValidator();
            customValidator8.ID = "CustomValidator8";
            customValidator8.ClientValidationFunction = "validateQuestion8";
            customValidator8.ErrorMessage = "*";

            templatePlaceHolder.Controls.Add(div);
            templatePlaceHolder.Controls.Add(radio81);
            templatePlaceHolder.Controls.Add(radio82);
            templatePlaceHolder.Controls.Add(radio83);
            templatePlaceHolder.Controls.Add(radio84);
            templatePlaceHolder.Controls.Add(customValidator8);

            Literal enddiv = new Literal();
            enddiv.Text = "</div>";

            templatePlaceHolder.Controls.Add(enddiv);
        }
        public void InstantiateIn(Control container)
        {
            PlaceHolder templatePlaceHolder = new PlaceHolder();
            container.Controls.Add(templatePlaceHolder);

            Literal divQ5 = new Literal();
            divQ5.Text = "<div class=\"Q5\">";

            Literal div = new Literal();
            div.Text = "<div id=\"scaleNumber\">1&#160;&#160;&#160;&#160;2&#160;&#160;&#160;&#160;3&#160;&#160;&#160;&#160;4&#160;&#160;&#160;&#160;5&#160;&#160;&#160;&#160;6</div>";

            Literal unorderlist = new Literal();
            unorderlist.Text = "<ul class=\"no-bullet\" id=\"textArea\">";

            Literal list1 = new Literal();
            list1.Text = "<li>Employee recognition program</li>";

            Literal list2 = new Literal();
            list2.Text = "<li>Ability to make decisions</li>";

            Literal list3 = new Literal();
            list3.Text = "<li>Comfortable work environment</li>";

            Literal list4 = new Literal();
            list4.Text = "<li>Employee training program</li>";

            Literal list5 = new Literal();
            list5.Text = "<li>Company picnic</li>";
            
            Literal list6 = new Literal();
            list6.Text = "<li>Christmas party</li>";

            Literal divRadiosAreas = new Literal();
            divRadiosAreas.Text = "<div id=\"radiosAreas\">";

            Literal div2 = new Literal();
            div2.Text = "<div>";
                        
            Obout.Interface.OboutRadioButton radio91 = new Obout.Interface.OboutRadioButton();
            radio91.ID = "OboutRadioButton91";
            radio91.GroupName = "g7";
            Obout.Interface.OboutRadioButton radio92 = new Obout.Interface.OboutRadioButton();
            radio92.ID = "OboutRadioButton92";
            radio92.GroupName = "g7";
            Obout.Interface.OboutRadioButton radio93 = new Obout.Interface.OboutRadioButton();
            radio93.ID = "OboutRadioButton93";
            radio93.GroupName = "g7";
            Obout.Interface.OboutRadioButton radio94 = new Obout.Interface.OboutRadioButton();
            radio94.ID = "OboutRadioButton94";
            radio94.GroupName = "g7";
            Obout.Interface.OboutRadioButton radio95 = new Obout.Interface.OboutRadioButton();
            radio95.ID = "OboutRadioButton95";
            radio95.GroupName = "g7";
            Obout.Interface.OboutRadioButton radio96 = new Obout.Interface.OboutRadioButton();
            radio96.ID = "OboutRadioButton96";
            radio96.GroupName = "g7";

            CustomValidator customValidator91 = new CustomValidator();
            customValidator91.ID = "CustomValidator91";
            customValidator91.ClientValidationFunction = "validateQuestion91";
            customValidator91.ErrorMessage = "*";

            Literal endDiv2 = new Literal();
            endDiv2.Text = "</div>";

            Literal div3 = new Literal();
            div3.Text = "<div>";
                        
            Obout.Interface.OboutRadioButton radio97 = new Obout.Interface.OboutRadioButton();
            radio97.ID = "OboutRadioButton97";
            radio97.GroupName = "g8";
            Obout.Interface.OboutRadioButton radio98 = new Obout.Interface.OboutRadioButton();
            radio98.ID = "OboutRadioButton98";
            radio98.GroupName = "g8";
            Obout.Interface.OboutRadioButton radio99 = new Obout.Interface.OboutRadioButton();
            radio99.ID = "OboutRadioButton99";
            radio99.GroupName = "g8";
            Obout.Interface.OboutRadioButton radio910 = new Obout.Interface.OboutRadioButton();
            radio910.ID = "OboutRadioButton910";
            radio910.GroupName = "g8";
            Obout.Interface.OboutRadioButton radio911 = new Obout.Interface.OboutRadioButton();
            radio911.ID = "OboutRadioButton911";
            radio911.GroupName = "g8";
            Obout.Interface.OboutRadioButton radio912 = new Obout.Interface.OboutRadioButton();
            radio912.ID = "OboutRadioButton912";
            radio912.GroupName = "g8";

            CustomValidator customValidator92 = new CustomValidator();
            customValidator92.ID = "CustomValidator92";
            customValidator92.ClientValidationFunction = "validateQuestion92";
            customValidator92.ErrorMessage = "*";

            Literal endDiv3 = new Literal();
            endDiv3.Text = "</div>";
         
            Literal div4 = new Literal();
            div4.Text = "<div>";
                        
            Obout.Interface.OboutRadioButton radio913 = new Obout.Interface.OboutRadioButton();
            radio913.ID = "OboutRadioButton913";
            radio913.GroupName = "g9";
            Obout.Interface.OboutRadioButton radio914 = new Obout.Interface.OboutRadioButton();
            radio914.ID = "OboutRadioButton914";
            radio914.GroupName = "g9";
            Obout.Interface.OboutRadioButton radio915 = new Obout.Interface.OboutRadioButton();
            radio915.ID = "OboutRadioButton915";
            radio915.GroupName = "g9";
            Obout.Interface.OboutRadioButton radio916 = new Obout.Interface.OboutRadioButton();
            radio916.ID = "OboutRadioButton916";
            radio916.GroupName = "g9";
            Obout.Interface.OboutRadioButton radio917 = new Obout.Interface.OboutRadioButton();
            radio917.ID = "OboutRadioButton917";
            radio917.GroupName = "g9";
            Obout.Interface.OboutRadioButton radio918 = new Obout.Interface.OboutRadioButton();
            radio918.ID = "OboutRadioButton918";
            radio918.GroupName = "g9";
            
            CustomValidator customValidator93 = new CustomValidator();
            customValidator93.ID = "CustomValidator93";
            customValidator93.ClientValidationFunction = "validateQuestion93";
            customValidator93.ErrorMessage = "*";

            Literal endDiv4 = new Literal();
            endDiv4.Text = "</div>";          
                            
            Literal div5 = new Literal();
            div5.Text = "<div>";
                        
            Obout.Interface.OboutRadioButton radio919 = new Obout.Interface.OboutRadioButton();
            radio919.ID = "OboutRadioButton919";
            radio919.GroupName = "g10";
            Obout.Interface.OboutRadioButton radio920 = new Obout.Interface.OboutRadioButton();
            radio920.ID = "OboutRadioButton920";
            radio920.GroupName = "g10";
            Obout.Interface.OboutRadioButton radio921 = new Obout.Interface.OboutRadioButton();
            radio921.ID = "OboutRadioButton921";
            radio921.GroupName = "g10";
            Obout.Interface.OboutRadioButton radio922 = new Obout.Interface.OboutRadioButton();
            radio922.ID = "OboutRadioButton922";
            radio922.GroupName = "g10";
            Obout.Interface.OboutRadioButton radio923 = new Obout.Interface.OboutRadioButton();
            radio923.ID = "OboutRadioButton923";
            radio923.GroupName = "g10";
            Obout.Interface.OboutRadioButton radio924 = new Obout.Interface.OboutRadioButton();
            radio924.ID = "OboutRadioButton924";
            radio924.GroupName = "g10";

            CustomValidator customValidator94 = new CustomValidator();
            customValidator94.ID = "CustomValidator94";
            customValidator94.ClientValidationFunction = "validateQuestion94";
            customValidator94.ErrorMessage = "*";

            Literal endDiv5 = new Literal();
            endDiv5.Text = "</div>";          
                            
            Literal div6 = new Literal();
            div6.Text = "<div>";
                        
            Obout.Interface.OboutRadioButton radio925 = new Obout.Interface.OboutRadioButton();
            radio925.ID = "OboutRadioButton925";
            radio925.GroupName = "g11";
            Obout.Interface.OboutRadioButton radio926 = new Obout.Interface.OboutRadioButton();
            radio926.ID = "OboutRadioButton926";
            radio926.GroupName = "g11";
            Obout.Interface.OboutRadioButton radio927 = new Obout.Interface.OboutRadioButton();
            radio927.ID = "OboutRadioButton927";
            radio927.GroupName = "g11";
            Obout.Interface.OboutRadioButton radio928 = new Obout.Interface.OboutRadioButton();
            radio928.ID = "OboutRadioButton928";
            radio928.GroupName = "g11";
            Obout.Interface.OboutRadioButton radio929 = new Obout.Interface.OboutRadioButton();
            radio929.ID = "OboutRadioButton929";
            radio929.GroupName = "g11";
            Obout.Interface.OboutRadioButton radio930 = new Obout.Interface.OboutRadioButton();
            radio930.ID = "OboutRadioButton930";
            radio930.GroupName = "g11";
            
            CustomValidator customValidator95 = new CustomValidator();
            customValidator95.ID = "CustomValidator95";
            customValidator95.ClientValidationFunction = "validateQuestion95";
            customValidator95.ErrorMessage = "*";

            Literal endDiv6 = new Literal();
            endDiv6.Text = "</div>";     
                             
            Literal div7 = new Literal();
            div7.Text = "<div>";
                        
            Obout.Interface.OboutRadioButton radio931 = new Obout.Interface.OboutRadioButton();
            radio931.ID = "OboutRadioButton931";
            radio931.GroupName = "g12";
            Obout.Interface.OboutRadioButton radio932 = new Obout.Interface.OboutRadioButton();
            radio932.ID = "OboutRadioButton932";
            radio932.GroupName = "g12";
            Obout.Interface.OboutRadioButton radio933 = new Obout.Interface.OboutRadioButton();
            radio933.ID = "OboutRadioButton933";
            radio933.GroupName = "g12";
            Obout.Interface.OboutRadioButton radio934 = new Obout.Interface.OboutRadioButton();
            radio934.ID = "OboutRadioButton934";
            radio934.GroupName = "g12";
            Obout.Interface.OboutRadioButton radio935 = new Obout.Interface.OboutRadioButton();
            radio935.ID = "OboutRadioButton935";
            radio935.GroupName = "g12";
            Obout.Interface.OboutRadioButton radio936 = new Obout.Interface.OboutRadioButton();
            radio936.ID = "OboutRadioButton936";
            radio936.GroupName = "g12";
            
            CustomValidator customValidator96 = new CustomValidator();
            customValidator96.ID = "CustomValidator96";
            customValidator96.ClientValidationFunction = "validateQuestion96";
            customValidator96.ErrorMessage = "*";

            Literal endDiv7 = new Literal();
            endDiv7.Text = "</div>";

            Literal endDdivQ5 = new Literal();
            endDdivQ5.Text = "</div>";

            Literal endDivRadios = new Literal();
            endDiv7.Text = "</div>";
            
            templatePlaceHolder.Controls.Add(divQ5);
            templatePlaceHolder.Controls.Add(div);
            templatePlaceHolder.Controls.Add(unorderlist);
            templatePlaceHolder.Controls.Add(list1);
            templatePlaceHolder.Controls.Add(list2);
            templatePlaceHolder.Controls.Add(list3);
            templatePlaceHolder.Controls.Add(list4);
            templatePlaceHolder.Controls.Add(list5);
            templatePlaceHolder.Controls.Add(list6);
            templatePlaceHolder.Controls.Add(divRadiosAreas);
            templatePlaceHolder.Controls.Add(div2);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio91);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio92);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio93);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio94);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio95);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio96);
            templatePlaceHolder.Controls.Add(customValidator91);
            templatePlaceHolder.Controls.Add(endDiv2);
            templatePlaceHolder.Controls.Add(div3);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio97);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio98);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio99);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio910);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio911);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio912);
            templatePlaceHolder.Controls.Add(customValidator92);
            templatePlaceHolder.Controls.Add(endDiv3);
            templatePlaceHolder.Controls.Add(div4);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio913);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio914);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio915);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio916);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio917);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio918);
            templatePlaceHolder.Controls.Add(customValidator93);
            templatePlaceHolder.Controls.Add(endDiv4);
            templatePlaceHolder.Controls.Add(div5);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio919);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio920);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio921);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio922);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio923);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio924);
            templatePlaceHolder.Controls.Add(customValidator94);
            templatePlaceHolder.Controls.Add(endDiv5);
            templatePlaceHolder.Controls.Add(div6);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio925);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio926);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio927);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio928);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio929);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio930);
            templatePlaceHolder.Controls.Add(customValidator95);
            templatePlaceHolder.Controls.Add(endDiv6);
            templatePlaceHolder.Controls.Add(div7);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio931);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio932);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio933);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio934);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio935);
            templatePlaceHolder.Controls.Add(CreateSpacer());
            templatePlaceHolder.Controls.Add(radio936);
            templatePlaceHolder.Controls.Add(customValidator96);
            templatePlaceHolder.Controls.Add(endDiv7);
          
            templatePlaceHolder.Controls.Add(endDivRadios);
            templatePlaceHolder.Controls.Add(endDdivQ5);
 
        }
        public void InstantiateIn(Control container)
        {
            PlaceHolder templatePlaceHolder = new PlaceHolder();
            container.Controls.Add(templatePlaceHolder);

            Literal div = new Literal();
            div.Text = "<div class=\"Q3\">";

            Obout.Interface.OboutRadioButton radio51 = new Obout.Interface.OboutRadioButton();
            radio51.ID = "OboutRadioButton51";
            radio51.GroupName = "g3";
            radio51.Text = "Strongly Disagree";
            radio51.Width = 125;

            Obout.Interface.OboutRadioButton radio52 = new Obout.Interface.OboutRadioButton();
            radio52.ID = "OboutRadioButton52";
            radio52.GroupName = "g3";
            radio52.Text = "Disagree";
            radio52.Width = 75;

            Obout.Interface.OboutRadioButton radio53 = new Obout.Interface.OboutRadioButton();
            radio53.ID = "OboutRadioButton53";
            radio53.GroupName = "g3";
            radio53.Text = "Agree";
            radio53.Width = 65;

            Obout.Interface.OboutRadioButton radio54 = new Obout.Interface.OboutRadioButton();
            radio54.ID = "OboutRadioButton54";
            radio54.GroupName = "g3";
            radio54.Text = "Strongly Agree";
            radio54.Width = 100;

            CustomValidator customValidator5 = new CustomValidator();
            customValidator5.ID = "CustomValidator5";
            customValidator5.ClientValidationFunction = "validateQuestion5";
            customValidator5.ErrorMessage = "*";

            templatePlaceHolder.Controls.Add(div);
            templatePlaceHolder.Controls.Add(radio51);
            templatePlaceHolder.Controls.Add(radio52);
            templatePlaceHolder.Controls.Add(radio53);
            templatePlaceHolder.Controls.Add(radio54);
            templatePlaceHolder.Controls.Add(customValidator5);

            Literal enddiv = new Literal();
            enddiv.Text = "</div>";

            templatePlaceHolder.Controls.Add(enddiv);
        }