asp.net – CalendarExtender定位问题
发布时间:2021-01-11 22:45:00 所属栏目:asp.Net 来源:互联网
导读:我将一个CalendarExtender添加到页面,使用默认样式.当我点击日历按钮来触发日历弹出时,日历显示正常.但是,当我向下滚动并再次单击按钮时,日历的位置不在于它应该在哪里,如下所示. alt text http://ktrauberman.wordpress.com/files/2009/06/calendarproblem.g
我将一个CalendarExtender添加到页面,使用默认样式.当我点击日历按钮来触发日历弹出时,日历显示正常.但是,当我向下滚动并再次单击按钮时,日历的位置不在于它应该在哪里,如下所示. alt text http://ktrauberman.wordpress.com/files/2009/06/calendarproblem.gif 为什么会这样发生,我该如何解决? 编辑:有关该页面的实现. CalendarExtender和TextBox是添加到SharePoint 2007页面的WebPart的一部分.我正在创建扩展器: textBox = new TextBox() { ID = "textBox" }; Controls.Add(textBox); calendar = new CalendarExtender() { ID = "ceStartDate",TargetControlID = textBox.ID,PopupPosition = CalendarPosition.Right,PopupButtonID = image.ID }; Controls.Add(calendar); 解决方法什么是页面 DOCTYPE?还有什么浏览器呢?在具有IE6-7的无效/旧DOCTYPE的页面中,我在Quirks模式下看到这个问题.在怪异模式下,javascript值(如滚动位置)可以关闭,导致渲染不良.你应该确保你有一个有效的DOCTYPE,迫使IE进入标准模式,如.. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> (编辑:十堰站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net – IIS Web Garden中的Singleton对象
- asp.net-mvc – ASP.NET MVC中的替代用户管理
- asp-classic – 如何使用Microsoft.XMLHTTP指定代理配置?
- asp.net – System.Security.SecurityException?
- asp.net – ASP:ItemTemplate中的DropDownList:为什么允许
- asp.net-mvc – ELMAH和SQL Server 2008 R2?
- asp.net – 在网站上放置广告的最佳做法?
- asp.net-mvc – 使用Viewbag绑定DropdownlistFor
- 使用ASP.NET AJAX Control Toolkit设置焦点
- asp-classic – 如何使用AES在VBScript中进行加密?
推荐文章
站长推荐
- ASP.NET JSON字符串与实体类的互转换示例代码
- asp.net-mvc – 删除布局将默认为_ViewStart,为什
- 详解Asp.net Core 使用Redis存储Session
- asp.net-mvc – MVC应用程序调试错误:viewstate
- .net – asp:GridView文本框始终返回空值
- asp.net – Web部署安装程序(MSI)中没有“IIS 7部
- 部署DotNetNuke并将ASP.NET应用程序分开 – 可能
- asp.net – 应用程序池在iisreset之后无法启动
- asp.net-mvc-4 – AngularJs,DropZone.Js,MVC4 –
- asp.net – 从启用AJAX的WCF服务返回错误详细信息
热点阅读