DropDown控件,該控件用于實現(xiàn)下拉列表控件的客戶端功能。
實例代碼如下:
<%
@PageLanguage
=
"
C#
"
AutoEventWireup
=
"
true
"
CodeFile
=
"
DragPanelDemo.aspx.cs
"
Inherits = " DragPanelDemo " %>
<%
@RegisterAssembly
=
"
System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,
PublicKeyToken=31bf3856ad364e35 "
Namespace
=
"
System.Web.UI
"
TagPrefix
=
"
asp
"
%>
<%
@RegisterAssembly
=
"
AjaxControlToolkit
"
Namespace
=
"
AjaxControlToolkit
"
TagPrefix
=
"
cc1
"
%>
<!
DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<
html
xmlns
="http://www.w3.org/1999/xhtml"
>
<
head
runat
="server"
>
<
title
>
無標題頁
</
title
>
</
head
>
<
body
>
<
form
id
="form1"
runat
="server"
>
<
div
>
<
asp:ScriptManager
ID
="ScriptManager1"
runat
="server"
>
</
asp:ScriptManager
>
<
div
style
="height:300px;width:150px;float:left;padding:5px;"
>
<
asp:Panel
ID
="Panel3"
runat
="server"
Width
="100%"
>
<
asp:Panel
BorderStyle
="Solid"
BorderWidth
="2px"
BorderColor
="black"
ID
="Panel4"
runat
="server"
Width
="100%"
Height
="20px"
>
<
div
class
="dragMe"
>
拖動
</
div
>
</
asp:Panel
>
<
asp:Panel
BorderStyle
="Solid"
BackColor
="#AFC5FE"
ForeColor
="Black"
Font-Size
="small"
BorderWidth
="2px"
BorderColor
="black"
ID
="Panel5"
runat
="server"
Width
="100%"
Height
="150px"
Style
="overflow:scroll;"
>
<
p
>
移動控制板
</
p
>
</
asp:Panel
>
</
asp:Panel
>
<
cc1:DragPanelExtender
ID
="DragPanelExtender1"
runat
="server"
TargetControlID ="Panel3" DragHandleID ="Panel4" >
</
cc1:DragPanelExtender
>
</
div
>
</
div
>
</
form
>
</
body
>
</
html
>
實例代碼如下:

Inherits = " DragPanelDemo " %>


PublicKeyToken=31bf3856ad364e35 "





"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
























TargetControlID ="Panel3" DragHandleID ="Panel4" >







更多文章、技術交流、商務合作、聯(lián)系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號聯(lián)系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
