使用日历扩展器ajax控件时出现问题
即使我已将 calenderextender 添加到网页中的文本框控件中,我也无法在网页中看到日历。
这是我的代码 .aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register TagPrefix="CR" Namespace="CrystalDecisions.Web" Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Label ID="Label1" runat="server" Text="From Date"></asp:Label>
<asp:TextBox ID="fromdatetextbox" runat="server"></asp:TextBox>
<asp:CalendarExtender ID="fromdatetextbox_CalendarExtender" runat="server"
TargetControlID="fromdatetextbox">
</asp:CalendarExtender>
<br />
<br />
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True"
Height="500px" ReportSourceID="CrystalReportSource1" Width="500px" />
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
<Report FileName="CrystalReport1.rpt">
</Report>
</CR:CrystalReportSource>
</div>
</form>
</body>
</html>
请帮我解决我做错了什么。我想在突出显示的文本框中显示日历,即如果用户在文本框中单击,则必须显示日历。
I am not able to see calender in my webpage even when i have added calenderextender to the textbox control in my webpage.
Here is my code .aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register TagPrefix="CR" Namespace="CrystalDecisions.Web" Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Label ID="Label1" runat="server" Text="From Date"></asp:Label>
<asp:TextBox ID="fromdatetextbox" runat="server"></asp:TextBox>
<asp:CalendarExtender ID="fromdatetextbox_CalendarExtender" runat="server"
TargetControlID="fromdatetextbox">
</asp:CalendarExtender>
<br />
<br />
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True"
Height="500px" ReportSourceID="CrystalReportSource1" Width="500px" />
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
<Report FileName="CrystalReport1.rpt">
</Report>
</CR:CrystalReportSource>
</div>
</form>
</body>
</html>
Please help me to sortout what am i doing wrong. I want to display calender on textbox being highlighted i.e if a user clicks inside the textbox,calender must appear.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我添加了
代替
并且它起作用了。这是真正的问题吗?正如我在不同论坛上看到的许多使用 scripmanager 的例子一样,它仍然适用于他们
I added
Instead of
and it worked. was it the real problem? as i have seen many examples on different forum that use scripmanager n still it works for them