会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
海南一哥
altas(ajax)控件(九):可拖动面板DragPanel
使用非常简单:
<
asp:Panel
ID
="Panel6"
runat
="server"
Width
="250px"
style
="z-index: 20;"
>
<
asp:Panel
ID
="Panel7"
runat
="server"
Width
="100%"
Height
="20px"
BorderStyle
="Solid"
BorderWidth
="2px"
BorderColor
="black"
>
<
div
class
="dragMe"
>
用鼠标拖动
</
div
>
</
asp:Panel
>
<
asp:Panel
ID
="Panel8"
runat
="server"
Width
="100%"
Height
="250px"
Style
="overflow: scroll;"
BackColor
="#0B3D73"
ForeColor
="whitesmoke"
BorderWidth
="2px"
BorderColor
="black"
BorderStyle
="Solid"
>
<
div
>
<
p
>
This panel will reset its position on a postback or page refresh.
</
p
>
<
hr
/>
<
p
>
<%
=
GetContentFillerText()
%>
</
p
>
</
div
>
</
asp:Panel
>
</
asp:Panel
>
<
ajaxToolkit:DragPanelExtender
ID
="DragPanelExtender1"
runat
="server"
TargetControlID
="Panel6"
DragHandleID
="Panel7"
/>
·
TargetControlID
–
指定可以拖动的面板的
ID
·
DragHandleID
–
指定一个
ID
,作为拖动面板的标题栏。
效果如下:http://www.asp.net/AJAX/Control-Toolkit/Live/DragPanel/DragPanel.aspx
posted on
2007-08-25 18:25
海南一哥
阅读(
146
) 评论(
0
)
编辑
收藏
举报
努力加载评论中...
刷新页面
返回顶部
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
导航
博客园
首页
新随笔
联系
订阅
管理
公告
点击右上角即可分享
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步