ASP.NET AJAX控制套件 [英] ASP.NET AJAX Control Kit

查看:74
本文介绍了ASP.NET AJAX控制套件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了.NET 3.5 AJAX控制工具包.我添加了在文本框获得焦点时弹出日历所需的内容,但是日历网格太大了……它无法完全显示在日历的矩形内.有没有人遇到过这个问题,并想出了解决办法?

Tim

I downloaded the .NET 3.5 AJAX Control Kit. I added what is needed to get the calendar to pop up when a text box gets focus, but the calendar grid is way too big...it doesn''t fully display within the rectangle of the calendar. Has anyone encountered this and figured out how to fix it?

Tim

推荐答案

在工具包中可以控制压延剂,而且尺寸也不宜太大.
为此,还添加了第一个高级工具箱脚本管理器.在使用页面上的任何控件之前.
there is control of calender extender in toolkit and size is not too big.
for this also add first advance toolkit script manager. before using any control on the page.
<ajaxtoolkit:calendarextender id="CalendarExtender" runat="server" targetcontrolid="TextBox1" xmlns:ajaxtoolkit="#unknown" />


希望如此帮助

Hope this helps

<table>
<td><tr> 
<asp:TextBox ID="txtDate"  ReadOnly ="true" runat="server" ></asp:TextBox>
           <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl ="~/Images/Calendar_scheduleHS.png" />
           <AjaxToolkit:CalendarExtender ID="CalendarExtender1" OnClientDateSelectionChanged ="checkDate" TargetControlID ="txtDate" PopupButtonID ="ImageButton1" runat="server">
           </AjaxToolkit:CalendarExtender>
           </td></tr> </table>


UPDATE:我发现问题与放置它的页面的CSS有关.当我注释掉为扩展器所在的DIV类中的表定义的CSS时,日历将正确显示.不幸的是,CSS是我的弱点.我已经尝试创建CSS,即使使用我的班级定义,日历也可以正确显示,但是运气不好.有帮助吗?
UPDATE: I discovered that the problem has something to do with the CSS for the page on which it is placed. When I comment out the CSS that is defined for tables in the class of the DIV in which the extender, the calendar displays properly. Unfortunately, CSS is my weakness. I''ve tried creating CSS that will allow the calendar to display properly even with my class'' definition, but not luck. Any help out there?


这篇关于ASP.NET AJAX控制套件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆