Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Problem using ajax validatorCalloutExtenderProblem using ajax validatorCalloutExtender
Previous
 
Next
New Post
2/23/2010 1:57 PM
 

Hi this is my issue, I had a module that implements ajax I already check the option of render the module, I already put this in page load:

if (DotNetNuke.Framework.AJAX.IsInstalled())
{
                DotNetNuke.Framework.AJAX.RegisterScriptManager();
}

and in my ascx code I had some textfields, some requiredfieldvalidator related to this textfields and some validatorcalloutextener related with those required field validators, when I make mistakes and left the textbox empty the first one of this validators appears.

 

This is my code:

<asp:Panel ID="Panel1" runat="server" Height="475px" Width="943px" >
       
            <table style="height: 141px" align="center" >
                <tr>
                    <td style="width: 90px; height: 21px;"  align="right">
                        <asp:Label ID="lblBanco"  runat="server" Text="Banco(*)"></asp:Label></td>
                    <td style="width: 1px;" >
                       </td>
                    <td style="width: 270px; height: 21px;" align="left">
                    
                     <asp:TextBox ID="txtBanco" runat="server" MaxLength="10"></asp:TextBox>
                     <ajaxToolkit:ValidatorCalloutExtender id="vceBanco" runat="server" targetcontrolid="rfvBanco"/>
                        &nbsp;
                     <asp:RequiredFieldValidator id="rfvBanco" runat="server" errormessage="El nombre del banco es indispensable para registrarla correctamente" controltovalidate="txtBanco" display="None" /></td>
                    <td style="width: 1px;" >
                        </td>
                    <td style="width: 116px; height: 21px;" align="right">
                        <asp:Label ID="lblRepreLegal" runat="server" Text="Repre.Legal(*)" ToolTip="Representante Legal"></asp:Label></td>
                    <td style="width: 1px;" >
                        &nbsp;</td>
                    <td style="width: 270px; height: 21px;" align="left">
                       <asp:TextBox ID="txtRepreLegal" runat="server" MaxLength="40"></asp:TextBox>&nbsp;
                        <ajaxToolkit:ValidatorCalloutExtender id="vceRepreLegal" runat="server" targetcontrolid="rfvRepreLegal"/>
                       <asp:RequiredFieldValidator id="rfvRepreLegal" runat="server" errormessage="El nombre del representante legal es indispensable para registrar la cuenta correctamente" controltovalidate="txtRepreLegal" display="None" /></td>
                    <td style="width: 270px; height: 21px;" >
                       
                        </td>
                </tr>
                <tr>
                    <td style="width: 90px; height: 21px;" align="right" >
                        <asp:Label ID="lblCuenta" runat="server" Text="#Cuenta(*)"></asp:Label></td>
                     <td style="width: 1px; height: 21px;" >
                         &nbsp;</td>
                    <td style="width: 270px; height: 21px;" align="left">
                    <asp:TextBox ID="txtCuenta" runat="server" MaxLength="25"></asp:TextBox>
                        <ajaxToolkit:ValidatorCalloutExtender id="vceCuenta" runat="server" targetcontrolid="rfvCuenta"/>
                        <asp:RequiredFieldValidator id="rfvCuenta" runat="server" errormessage="El número de cuenta es indispensable para registrarla correctamente" controltovalidate="txtCuenta" display="None" /></td>
                    <td style="width: 1px;" >
                        </td>
                    <td style="width: 116px; height: 21px;" align="right">
                        <asp:Label ID="lblCuenta3"  runat="server" Text="Moneda(*)"></asp:Label></td>
                    <td style="width: 1px;" >
                        &nbsp;</td>
                    <td style="width: 300px; height: 21px;" align="left">
                        &nbsp;&nbsp;<asp:RadioButtonList ID="rblMoneda" runat="server" ToolTip="Active o desactive el estado de la cuenta bancaria">
                        </asp:RadioButtonList>
                    
                    </td>
                        <td style="width: 5px; height: 21px;" >
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 90px; height: 21px;" align="right">
                        <asp:Label ID="lblBanco22" runat="server" Text="Cédula(*)"></asp:Label></td>
                     <td style="width: 1px" >
                         &nbsp;</td>
                    <td style="width: 270px; height: 21px;" align="left">
                        <asp:TextBox ID="txtCedula" runat="server" MaxLength="20"></asp:TextBox>&nbsp;<ajaxToolkit:ValidatorCalloutExtender id="vceCedula" runat="server" targetcontrolid="rfvCedula"/>
                        <asp:RequiredFieldValidator id="rfvCedula" runat="server" errormessage="El número de cédula es indispensable para registrar la cuenta correctamente" controltovalidate="txtCedula" display="None" /></td>
                    <td style="width: 1px" >
                        &nbsp;</td>
                    <td style="width: 116px" align="right">
                        <asp:Label ID="lblMonto" runat="server" Text="Monto(*)"></asp:Label></td>
                    <td style="width: 1px" >
                        &nbsp;</td>
                    <td style="width: 300px" align="left">
                        <asp:TextBox ID="txtMonto" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator id="rfvMonto" runat="server" errormessage="El monto es indispensable para registrar la cuenta correctamente" controltovalidate="txtMonto" display="None" />
                        <ajaxToolkit:ValidatorCalloutExtender id="vceMonto" runat="server" targetcontrolid="rfvMonto"/></td>
                    <td style="width: 5px" >
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 90px; height: 85px;" align="right">
                        <asp:Label ID="lblDescripción"  runat="server" Text="Descripción"></asp:Label>&nbsp;
                    </td>
                     <td style="width: 1px; height: 85px;" >
                         </td>
                    <td style="width: 270px; height: 85px;" align="left">
                        <asp:TextBox ID="txtDescripcion" runat="server" Rows="4" TextMode="MultiLine"></asp:TextBox>
                    </td>
                    <td style="width: 1px; height: 85px;" >
                        &nbsp;</td>
                    <td style="width: 116px; height: 85px;" align="right">
                        <asp:Label ID="lblEstado" runat="server" Text="Estado(*)"></asp:Label>&nbsp;</td>
                    <td style="width: 1px; height: 85px;" >
                        &nbsp;</td>
                    <td style="width: 300px; height: 85px;" align="left">
                       
                        <asp:RadioButtonList ID="rblEstado" runat="server" ToolTip="Active o desactive el estado de la cuenta bancaria">
                            <asp:ListItem Selected="True">Activo</asp:ListItem>
                            <asp:ListItem>Inactivo</asp:ListItem>
                        </asp:RadioButtonList></td>
                        <td style="width: 5px; height: 85px;" >
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 90px; height: 22px;" align="right">
                        </td>
                    <td style="width: 1px; height: 22px;" >
                        </td>
                    <td style="width: 270px; height: 22px;" align="left">
                        &nbsp;</td>
                    <td style="width: 1px; height: 22px;" >
                        </td>
                     <td style="width: 116px; height: 22px;" align="right">
                        &nbsp;</td>
                    <td style="width: 1px; height: 22px;" >
                        &nbsp;</td>
                    <td style="width: 300px; height: 22px;" align="left">
                        &nbsp;&nbsp;
                     </td>
                     <td style="width: 5px" >
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 90px; height: 33px;" align="right">
                        </td>
                      <td style="width: 1px; height: 33px;" >
                          &nbsp;</td>
                    <td style="width: 270px; height: 33px;" align="left">
                        &nbsp;<asp:Label ID="lblRequeridos" runat="server" Text="(*) Son campos requeridos"></asp:Label></td>
                    <td style="width: 1px" >
                        &nbsp;</td>
                     <td style="width: 116px" align="right">
                        </td>
                    <td style="width: 1px" >
                        &nbsp;</td>
                    <td style="width: 300px" align="right">
                        &nbsp;
                        <asp:ImageButton ID="btnAceptar" runat="server" ImageUrl="~/Imagenes/aceptar.gif"
                            OnClick="btnAceptar_Click" ToolTip="Guardar Cambios" EnableTheming="True" />
                        <asp:ImageButton ID="btnCancelar" CausesValidation="False"
                                runat="server" ImageUrl="~/Imagenes/cancelar.gif" OnClick="btnCancelar_Click" ToolTip="Cancelar" /></td>
                    <td style="width: 5px" >
                        &nbsp;</td>
                </tr>
                 <tr>
                    <td style="width: 90px; height: 26px;" align="right">
                        </td>
                    <td style="width: 1px; height: 26px;">
                    </td>
                    <td style="width: 270px; height: 26px;" align="center">
                        &nbsp;</td>
                    <td style="width: 1px; height: 26px;" >
                        &nbsp;</td>
                     <td style="width: 116px; height: 26px;" align="right">
                        </td>
                    <td style="width: 1px; height: 26px;" >
                        &nbsp;</td>
                    <td style="width: 300px; height: 26px;" align="right">
                        <br />
                        <br />
                        &nbsp;&nbsp;
                    </td>
                    <td style="width: 5px; height: 26px;" >
                        &nbsp;</td>
                </tr>
            </table>
             
    </asp:Panel>
   

Thanks!!!!

 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Problem using ajax validatorCalloutExtenderProblem using ajax validatorCalloutExtender


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out