VS 2008

应用Asp.Net Ajax behavior模型,做了一个简单的可拖动的div ^_^

1. html页面
    
Behavior模型应用:可拖动的div容器<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
Behavior模型应用:可拖动的div容器
Behavior模型应用:可拖动的div容器
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Behavior模型应用:可拖动的div容器
Behavior模型应用:可拖动的div容器
<html xmlns="http://www.w3.org/1999/xhtml">
Behavior模型应用:可拖动的div容器
<head runat="server">
Behavior模型应用:可拖动的div容器    
<title>Untitled Page</title>
Behavior模型应用:可拖动的div容器
</head>
Behavior模型应用:可拖动的div容器
<body style="margin:0px;">
Behavior模型应用:可拖动的div容器    
<form id="form1" runat="server">
Behavior模型应用:可拖动的div容器    
<asp:ScriptManager ID="sMgr" runat="server">
Behavior模型应用:可拖动的div容器        
<Scripts>
Behavior模型应用:可拖动的div容器            
<asp:ScriptReference Path="~/Behaviors/DragBehavior.js" />
Behavior模型应用:可拖动的div容器        
</Scripts>
Behavior模型应用:可拖动的div容器    
</asp:ScriptManager>
Behavior模型应用:可拖动的div容器    
<div id="divDrag" style="position:fixed; width:500px;height:200px;border:solid 1px #000000;">
Behavior模型应用:可拖动的div容器        
<ul style="list-style:none; margin:0px; padding:0px;">
Behavior模型应用:可拖动的div容器            
<li style="height:30px; background-color:#cccccc;"></li>
Behavior模型应用:可拖动的div容器            
<li>
Behavior模型应用:可拖动的div容器                
Behavior模型应用:可拖动的div容器            
</li>
Behavior模型应用:可拖动的div容器        
</ul>
Behavior模型应用:可拖动的div容器    
</div>
Behavior模型应用:可拖动的div容器    
Behavior模型应用:可拖动的div容器    
</form>
Behavior模型应用:可拖动的div容器    
<script type="text/javascript">
>

2. client behavior javascript library
    
) Sys.Application.notifyScriptLoaded();

相关文章:

  • 2022-01-01
  • 2021-06-24
  • 2021-07-04
  • 2022-12-23
  • 2022-01-01
  • 2022-01-01
猜你喜欢
  • 2022-01-01
  • 2021-08-26
  • 2022-12-23
  • 2021-07-01
  • 2021-12-19
  • 2022-01-01
  • 2022-12-23
相关资源
相似解决方案