简体   繁体   中英

Ajax calendar is not working in Mozilla and Chrome

Ajax Calendar is not working in the Firefox and chrome...I have used this coding...Or is there any calendar which works in all the browser..if there means say?

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Shift.ascx.cs"
Inherits="UserControl_ManageCalenderShift" %>
<%@ Register TagPrefix="Alpha" Namespace="LMS" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<form id="Test" runat="server">
    <table id="swipe" cellpadding="0" runat="server" cellspacing="2" class="table-border"
        align="center" width="990">
        <tr class="widget-text">
            <td class="heading-row">
                <asp:Label ID="lblHeader" Text="Manage" runat="server"></asp:Label>
            </td>
        </tr>
        <tr class="widget-bg2">
            <td>
                <table cellpadding="0" cellspacing="1" width="100%">
                    <tr>
                        <td>
                            <asp:ScriptManager ID="ScriptManager2" runat="server">
                            </asp:ScriptManager>

                            <asp:TextBox ID="TextBox1" runat="server" Width="200px"></asp:TextBox>
                            <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/clock_add.png" />
                            <cc1:CalendarExtender CssClass="cal_Theme1" ID="CalendarExtender1" runat="server"
                                PopupButtonID="Image1" TargetControlID="TextBox1">
                            </cc1:CalendarExtender>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <asp:TextBox ID="txt_date" runat="server" CssClass="text_box"
                 ontextchanged="txt_date_TextChanged" />
    <cc1:CalendarExtender ID="txt_date_CalendarExtender" runat="server" 
                          Enabled="True" TargetControlID="txt_date" />

You have to create one script manager for the calender extender

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM