ValidatorCalloutExtender is not visible

Discussion in 'ASP .Net' started by dotnetprodev@gmail.com, Jan 10, 2007.

  1. Guest

    I have downloaded and ran the Ajax Toolkit samples. They do work. For
    some reason mine does not.

    This is the code for my login page. I do not get any errors; it simply
    does not show the callout.

    =================================================================

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="login.aspx.vb"
    Inherits="login" MasterPageFile="~/default.master" %>
    <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0,
    Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
    <%@ Register Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
    Runat="Server">
    <asp:ScriptManager ID="scriptManager" runat="server" />
    <table id="login_form">
    <tr>
    <td colspan="2" class="header">Log In</td>
    </tr>
    <tr>
    <td class="field_header">User Name:</td>
    <td><asp:TextBox ID="txtUserName" runat="server" />
    <asp:RequiredFieldValidator ID="rfvUserName"
    ControlToValidate="txtUserName" Display="None" runat="server"
    ErrorMessage="Please enter a UserName.<br>If you cannot remember your
    UserName click <a href='forgot_username.aspx'>here</a>." />
    <cc1:ValidatorCalloutExtender
    ID="vceUserName"
    TargetControlID="rfvUserName"
    CloseImageUrl="~/images/close.gif"
    WarningIconImageUrl="~/images/alert-large.gif"
    HighlightCssClass="highlight"
    runat="server">
    </cc1:ValidatorCalloutExtender>
    </td>
    </tr>
    <tr>
    <td class="field_header">Password</td>
    <td><asp:TextBox ID="txtPassword" TextMode="Password"
    runat="server" />
    <asp:RequiredFieldValidator ID="rfvPassword"
    ControlToValidate="txtPassword" runat="server" ErrorMessage="*" /></td>
    </tr>
    <tr>
    <td colspan="2"><asp:CheckBox ID="cbRememberMe"
    Text="Yes, remember me next time I visit." runat="server" /></td>
    </tr>
    <tr>
    <td colspan="2"><asp:Label ID="lblLoginStatus"
    ForeColor="Red" runat="server" /></td>
    </tr>
    <tr>
    <td colspan="2"><asp:Button ID="btnLogin"
    runat="server" Text="Log In" CssClass="login_button" /></td>
    </tr>
    <tr>
    <td colspan="2">
    <asp:HyperLink ID="hlNeedAccount"
    NavigateUrl="~/create_user.aspx" Text="Need an Account?" runat="server"
    /><br />
    <asp:HyperLink ID="hlForgotPassword"
    NavigateUrl="~/forgot_password.aspx" Text="Forgot Password?"
    runat="server" />
    </td>
    </tr>
    </table>
    </asp:Content>

    =================================================================
    , Jan 10, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tshad

    button visible/not visible

    tshad, Oct 26, 2004, in forum: ASP .Net
    Replies:
    6
    Views:
    4,445
    Brian Hoops
    Oct 28, 2004
  2. tshad

    Sections visible and not visible

    tshad, Jan 31, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    2,062
    tshad
    Jan 31, 2005
  3. Patrick Olurotimi Ige
    Replies:
    7
    Views:
    5,965
    Patrick Olurotimi Ige
    Jun 15, 2005
  4. Luigi
    Replies:
    2
    Views:
    767
    Luigi
    Jun 13, 2008
  5. Jurjen de Groot
    Replies:
    0
    Views:
    304
    Jurjen de Groot
    May 19, 2008
Loading...

Share This Page