locked
Setting localization in the behind code. RRS feed

  • Question

  • User-1164658185 posted

    Need to set the following:

     <asp:WizardStep ID="UserSettings" runat="server" StepType="Step" Title="Your Personal Information">
                            <div class="frm-group group1">
                                <div class="sf-set set7">
                                    <div class="sf-box select">
                                        <label for="fld7">
                                            <span>
                                                <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources: RegisterResource, TimeZoneLabeltxt %>" /></span>
                                        </label>
                                        <br />
                                        <span class="fld-input">
                                            <asp:DropDownList ID="ddlTimeZone" runat="server" Width="300px">
                                            </asp:DropDownList>
                                        </span>
                                        <asp:RequiredFieldValidator ID="rfvTimeZone" runat="server" InitialValue="-1" SetFocusOnError="true"
                                            ValidationGroup="UserSettings" ControlToValidate="ddlTimeZone" ErrorMessage="<%$ Resources: RegisterResource, TimeZoneRequiredErrMsg%>"
                                            ToolTip="<%$ Resources: RegisterResource, TimeZoneRequiredErrMsg %>">*</asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </asp:WizardStep>

    however before this 

    <asp:CreateUserWizard ID="ITWebRegister" runat="server" ContinueDestinationPageUrl="~/Default.aspx"
                    CssClass="brd_ctrl" EmailRegularExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                    OnCreatedUser="NewUserWizard_CreatedUser" OnActiveStepChanged="NewUserWizard_ActiveStepChanged"
                    Font-Names="Verdana" Font-Size="0.9em" ActiveStepIndex="1">
                    <WizardSteps>
                        <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server" Title="Your Login Information">
                            <ContentTemplate>
                                <div class="frm-group group1">
                                    <div class="sf-set set1">
                                        <div class="sf-box text required">
                                            <label for="fld1">
                                                <span>
                                                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources: RegisterResource, UserNameLabelTxt %>" /></span>
                                            </label>
                                            <br />
                                            <span class="fld-input">
                                                <asp:TextBox ID="UserName" runat="server"></asp:TextBox></span>
                                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                ErrorMessage="<%$ Resources: RegisterResource, UserNameRequiredErrMsg %>" ToolTip="<%$ Resources: RegisterResource, UserNameRequiredErrMsg %>"
                                                ValidationGroup="ITWebRegister">*</asp:RequiredFieldValidator>
                                        </div>
                                    </div>
    
    where I can easily set the validation group
    in the code behind.
    ITWebRegister.UserNameLabelText = Resources.RegisterResource.UserNameLabelTxt;
    ITWebRegister.UserNameRequiredErrorMessage = Resources.RegisterResource.UserNameRequiredErrMsg;

    How can I set 

    TimeZoneLabeltxt 
    if I cannot see the attribute in the validation group?




    Monday, May 27, 2013 3:18 AM

All replies

  • User705563967 posted

    can you write what you want and what kind of issue you are facing as per your above post we can not understan what is the issue.

    Monday, May 27, 2013 5:57 AM