本文介绍了如何在拖动面板中显示输出值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在拖动面板中显示输出值..
我需要在asp.net中的一些示例
请提供一些示例.
解决方案
Hi,
I want to display output values in the drag panel..?
I need some examples in asp.net
Pls. provide some samples.
解决方案
Why don''t you generate content dynamically using DIV or something...
<asp:panel id="PnlContainer" runat="server" xmlns:asp="#unknown"> <asp:panel id="PnlHeader" runat="server"> Click and Drag Here To Move ME.....around the page</asp:panel> <asp:panel id="PnlDetail" runat="server"> <div id="divContent" runat="server"></div> </asp:panel> <ajaxtoolkit:dragpanelextender id="DragPanelExtender1" runat="server" xmlns:ajaxtoolkit="#unknown"> TargetControlID="PnlContainer" DragHandleID="PnlHeader"> </ajaxtoolkit:dragpanelextender></asp:panel>
Dynamic Content by client side using Javascript
<script type="text/javascript"> <!-- function DynamicContentforDIV() { document.getElementById('<% = divContent%>').innerHTML = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi eleifend lacinia arcu, at congue risus sollicitudin a. Nam lacinia placerat placerat. Maecenas nec sem sit amet risus mattis tempus in id purus. Morbi fermentum quam non massa vehicula aliquam. In hac habitasse platea dictumst. Sed elementum feugiat mauris, in laoreet diam lacinia nec. Pellentesque pellentesque elit in felis facilisis mollis.'; } // --> </script>
Dynamic Content by Server side using C#
divContent.InnerHtml = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi eleifend lacinia arcu, at congue risus sollicitudin a. Nam lacinia placerat placerat. Maecenas nec sem sit amet risus mattis tempus in id purus. Morbi fermentum quam non massa vehicula aliquam. In hac habitasse platea dictumst. Sed elementum feugiat mauris, in laoreet diam lacinia nec. Pellentesque pellentesque elit in felis facilisis mollis.";
这篇关于如何在拖动面板中显示输出值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!