ASP.NET通过Ajax或jQuery浮动Div菜单

问题:我有一个主页,指示css,html,head,body内容,所以我不能使用浮动div技术,需要通过ajax / asp唯一的路径。 我能够在网上找到关于这个主题的所有内容都是人们在实现这个问题时遇到了问题但没有实际的工作示例代码。

我尝试在jtricks.com上使用基于jQuery的浮动div菜单 ,但是指令是针对html文件而不是asp.net文件,并导致页面加载出错。

  
This is a floating javascript menu.
floatingMenu.add('floatdiv', { // Represents distance from left or right browser window // border depending upon property used. Only one should be // specified. // targetLeft: 0, targetRight: 10, // Represents distance from top or bottom browser window // border depending upon property used. Only one should be // specified. targetTop: 10, // targetBottom: 0, // Uncomment one of those if you need centering on // X- or Y- axis. // centerX: true, // centerY: true, // Remove this one if you don't want snap effect snap: true });

请提供一些示例代码,通过Ajax在TabContainer或DragPanel中使用浮动div。

谢谢! 🙂

为了使基于jquery的浮动div菜单工作,我在DynamicDataManager控件之后和ASP UpdatePanel中将div的代码放在ASP Content Main Section中:

      

我还添加了一个禁用更新按钮,以防止人们在数据库中创建2个重复记录:

     

我将实际脚本放在ASP Content Main标签中但在更新面板之后: