1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / ASP.NET Controls are not rendered

ASP.NET Controls are not rendered

2 posts, 0 answered
  1. Bobga Danjuma
    Bobga Danjuma avatar
    1 posts
    Registered:
    13 Jul 2012
    09 Jun 2011
    Link to this post
    I created a custom module which has front end view and backend view. For some reason, only some of the ASP.NET controls I have are rendered. I have attached my full project below but the code Markup am using for the front end is below:
    <%@ Control Language="C#" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI"
        TagPrefix="sitefinity" %>
    <telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="all">
    </telerik:RadFormDecorator>
    <sitefinity:Message runat="server" ID="message" ElementTag="div" RemoveAfter="30000"
        FadeDuration="10" />
    <div id="ResouceProfileMain">
        <div id="FirstNameDiv">
            <div id="FirstNameLabelDiv">
            <label id="FirstNameLabel">First Name</label>
            <a onclick="return false;" id="FirstName_expandButton" class="sfOptionalExpander" href="javascript:__doPostBack('C000$ctl00$ctl00$expandButton_write','')"
                style="display: none;">Click to add</a>
         </div>
            <div id="FirstNameTxtDiv">
                 <telerik:RadTextBox id="txtFirstName" runat="server" EmptyMessage="Please enter your first name"
                    Text="" Width="160px">
                </telerik:RadTextBox>
            </div>
        </div>
        <div id="LastNameDiv">
            <div id="LastNameLabelDiv">
            <label id="LastNameLabel">Last Name</label>
            <a onclick="return false;" id="LastName_expandButton" class="sfOptionalExpander" href="javascript:__doPostBack('C002$ctl00$ctl00$expandButton_write','')"
                style="display: none;">Click to add</a>
                </div>
            <div id="LastNameTxtDiv">
                 <telerik:RadTextBox ID="txtLastName" runat="server" EmptyMessage="Please Enter your last name"
                    Text="" Width="160px">
                </telerik:RadTextBox>
            </div>
        </div>
        <div id="EmailDiv">
            <div id="EmailLabelDiv">
            <label id="EmailLabel" class="sfTxtLbl">Verify Email</label>
                <a onclick="return false;" id="Email_expandButton" class="sfOptionalExpander"
                href="javascript:__doPostBack('C003$ctl00$ctl00$expandButton_write','')"
                style="display: none;">Click to add</a>
             </div>
            <div id="EmailTxtDiv">
                <telerik:RadTextBox ID="txtEmail" runat="server" EmptyMessage="Enter Email address in the format somebody@somedoamin.com"
                    Text="" Width="160px">
                </telerik:RadTextBox>
                <div id="EmailCommentDiv" class="sfExample">
                    Important for follow-up access!
                </div>
            </div>
        </div>
        <div id="PracticingPhysicianDiv">
            <div id="PracticingPhysicianLabelDiv" class="sfTxtLbl">
                <label id="PracticingPhysicianLabel">Are you a Practicing Physician?</label>
            </div>
            <asp:CheckBox id="ckPracticingPhysician" runat="server" Text="Practicing Physician" />
        </div>
        <div id="VisitorStatusDiv">
            <div id="VisitorStatusLabelDiv">
                <label id="VisitorStatusLabel">Which of the following best describes who you are:</label>
            </div>
            <div id="VisitorStatusCheckboxDiv">
                <asp:RadioButtonList id="rdVisitorStatus" runat="server">
                    <asp:ListItem>Program Director</asp:ListItem>
                    <asp:ListItem>Initial Certifier</asp:ListItem>
                    <asp:ListItem>Recertifier</asp:ListItem>
                    <asp:ListItem>Chief Resident</asp:ListItem>
                    <asp:ListItem>1st/2nd Year Resident</asp:ListItem>
                </asp:RadioButtonList>
            </div>
        </div>
        <div id="ResidencyProgramDiv">
            <div id="ResidencyProgramLabelDiv">
            <label id="ResidencyProgramLabel">Name of Residency Program</label>
            <a onclick="return false;" id="ResidencyProgram_expandButton" class="sfOptionalExpander" href="javascript:__doPostBack('C015$ctl00$ctl00$expandButton_write','')"
                style="display: none;">Click to add</a>
             </div>
            <div id="ResidencyProgramTxtDiv" class="sfFieldWrp">
                 <telerik:RadTextBox ID="txtResidencyProgram" runat="server" Text=""
                    Width="160px">
                </telerik:RadTextBox>
            </div>
        </div>
        <div id="ResidencyProgramAddressDiv">
            <div id="ResidencyProgramAddressLabelDiv">
            <label id="ResidencyProgramAddressleLabel">Address of Residency Program</label>
            </div>
            <div id="ResidencyProgramAddressTxtDiv">
                 <telerik:RadTextBox ID="txtResidencyProgramAddress" runat="server" Rows="5"
                    Text="" TextMode="MultiLine" Width="160px">
                </telerik:RadTextBox>
            </div>
        </div>
        <div id="CustomerDiv">
            <div id="CustomerLabelDiv">
                <label id="CustomerLabel">Are you a current or past Company customer?</label>
            </div>
            <div id="div_Customer">
                <asp:RadioButtonList ID="rdCustomer" runat="server">
                    <asp:ListItem>Yes</asp:ListItem>
                    <asp:ListItem>No</asp:ListItem>
                </asp:RadioButtonList>
            </div>
        </div>
        <div id="ABIMCertificationStatusDiv">
            <div id="ABIMCertificationStatusLabelDiv">
                <label id="ABIMCertificationStatusLabel">Your most recent ABIM Board exam was:</label>
            </div>
            <div id="div_ABIMCertificationStatus">
                <asp:RadioButtonList id="rdABIMCertificationStatus" runat="server">
                    <asp:ListItem>Initial Certification</asp:ListItem>
                    <asp:ListItem>Recertification</asp:ListItem>
                    <asp:ListItem>Not applicable</asp:ListItem>
                </asp:RadioButtonList>
            </div>
        </div>
        <div id="AnticipatedExamPeriodDiv" class="sfFormRadiolist">
            <div id="AnticipatedExamPeriodLabelDiv">
                <label id="AnticipatedExamPeriodLabel">Anticipated next ABIM Board exam?</label>
            </div>
            <div id="div_AnticipatedExamPeriod">
                <asp:RadioButtonList ID="rdAnticipatedExamPeriod" runat="server">
                    <asp:ListItem>Spring 2011</asp:ListItem>
                    <asp:ListItem>Fall 2011</asp:ListItem>
                    <asp:ListItem>Spring 2011</asp:ListItem>
                    <asp:ListItem>Later</asp:ListItem>
                </asp:RadioButtonList>
            </div>
        </div>
        <div id="PreferredCommunicationDiv">
            <div id="PreferredCommunicationLabelDiv">
                <label id="PreferredCommunicationLabel">Method of receiving information about Board certification or recertification
                exam prep resources (check as many as apply)</label>
            </div>
            <div id="div_PreferredCommunication">
                <asp:CheckBoxList ID="ckPreferredCommunication" runat="server" RepeatColumns="2">
                    <asp:ListItem>Email</asp:ListItem>
                    <asp:ListItem>Phone</asp:ListItem>
                    <asp:ListItem>Regular Mail</asp:ListItem>
                    <asp:ListItem>Fax</asp:ListItem>
                    <asp:ListItem>LinkedIn</asp:ListItem>
                    <asp:ListItem>Facebook</asp:ListItem>
                    <asp:ListItem>Twitter</asp:ListItem>
                    <asp:ListItem>I search websites on my own</asp:ListItem>
                    <asp:ListItem>Medical Journal ads</asp:ListItem>
                    <asp:ListItem>Other (please specific below</asp:ListItem>
                </asp:CheckBoxList>
            </div>
            <div id="OtherDiv">
            <label id="OtherLabel">Other Sources</label>
            <div id="OtherTxtDiv"><telerik:RadTextBox ID="txtOther" runat="server" Text="" TextMode="SingleLine" Width="160px"></telerik:RadTextBox></div>
            </div>
        </div>
        <div id="ReceiveOffersDiv">
            <div id="ReceiveOffersLabelDiv">
                <label id="ReceiveOffersLabel">you like to receive pertinent news/updates via e-mail involving ABIM Board
                exams and the resources Company offers to prepare for these exams.</label>
            </div>
            <div id="div_ReceiveOffers">
                <asp:RadioButtonList ID="rdReceiveOffers" runat="server">
                    <asp:ListItem>Yes</asp:ListItem>
                    <asp:ListItem>No</asp:ListItem>
                </asp:RadioButtonList>
                 
     
     
            </div>
        </div>
        <div id="ThankMessageDiv">
            <div id="ThankYouDiv" class="FormSectionHeaderDiv">
                Thank you for registering! You’re on your way to FREE Pulmonary Medicine downloads.
            </div>
            <div class="FormSectionSmallTextDiv">
                (* Once you’ve registered here and provided your e-mail address, you can re-enter
                the site for additional downloads of this Pulmonary Medicine material by simply
                keying in the same e-mail address you give here.) </div>
            <br/>
            <br/>
        </div>
        <div class="SubmitBtnSmall">
            <asp:Button runat="server" ID="SubmitButton" CssClass="SubmitBtnSmall" Text="Continue" Width="60px" ValidationGroup="ResourceProlfile" CausesValidation="True" />
        </div>
    </div>

    I am new to Sitefinity. Anyone that can take a look and see if let me know what mam doing wrong that will be create.
    FYI: When I add this module to a page and publish it or even in the page edit state, it does not render the Radio button List or the Checkboxlist.
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    28 Aug 2017
    14 Jun 2011
    Link to this post
    Hello Bobga Danjuma,

    Thank you for using our services. Can you, please, verify if you've attached the files properly, since your last message did not contain any. I've added a simple user control with your code on a Sitefinity page (release version 4.1. SP1) and all the controls show up and do postback on submitting the control data. Please take a look at the provided screenshot and let me know with some more information if the steps you're taking for reproducing this issue differ from what I've done. Thanks in advance.

    Regards,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered