Click here to Skip to main content
15,908,437 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

ASP.NET
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="atk" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head  runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1"  runat="server">
     
    <div>
        <atk:ToolkitScriptManager ID="ToolkitScriptManager1"  runat="server">
        
    <table>
    <tr>
    <td>First Name:</td>
    <td><asp:TextBox ID="TextBox3" runat="server"></td>
    </tr>
    <tr>
    <td>Last Name:</td>
    <td><asp:TextBox ID="TextBox2" runat="server"></td>
    </tr>
    <tr>
    <td>Age:</td>
    <td><asp:TextBox ID="TextBox1" runat="server"></td>
    </tr>
    <tr>
    <td>DOB:</td>
    <td>
        <asp:TextBox ID="txtDOB" runat="server">
        <atk:CalendarExtender ID="CalendarExtender1"
             runat="server" PopupButtonID="imgCalendat" TargetControlID="txtDOB">
         </td>
      <td><asp:ImageButton ID="imgCalendar" runat="server" ImageUrl="~/Images/agt_action_success.png"  /> </td>
       </tr>
        
    </table>
    
    </div>
     
    </form>
</body>
</html>



This is my Code. when click a Image Button calendar is not viewed. why? Please correct this.
Posted
Updated 20-Oct-11 19:30pm
v7

PopupButtonID="imgCalenda<big>t</big>"
Make it PopupButtonID="imgCalendar" and check.
 
Share this answer
 
I have notice that the PopupButtonID and the ImageButton id as not the same.
 
Share this answer
 
PopupButtonID="imgCalendat"

Change it to
PopupButtonID="imgCalendar"
 
Share this answer
 
check below

XML
<td>
        <asp:TextBox ID="txtDOB" runat="server">
        <atk:CalendarExtender ID="CalendarExtender1"
             runat="server" PopupButtonID="imgCalendar" TargetControlID="txtDOB">
         </td>
      <td><asp:ImageButton ID="imgCalendar" runat="server" ImageUrl="~/Images/agt_action_success.png"  /> </td>

i noticed that u have given wrong popupbuttonid property

 PopupButtonID="imgCalendat" insted of  PopupButtonID="imgCalendar"
 
Share this answer
 
Hi,
Thanks for your information
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900