[英]How to implement cut / Copy / Paste DIV in asp.net C#
I am using asp.net. 我正在使用asp.net。 and I have a div which should be organised in dynamic manner.
我有一个div,应该以动态的方式进行组织。 Meaning I want to organise the div in dynamic manner.
意思是我想以动态方式组织div。 My divs are
我的div是
<div id="LatestReviews" runat="server">
LatestReviews
</div>
<div id="PopularListings" runat="server">
PopularListings
</div>
<div id="Headlines" runat="server">
Headlines
</div>
<div id="LatestEvents" runat="server">
LatestEvents
</div>
<div id="NewJobs" runat="server">
vNewJobs
</div>
<div id="LatestClassifieds" runat="server">
LatestClassifieds
</div>
<div id="NewWishes" runat="server">
NewWishes
</div>
<div id="SalesAndDiscounts" runat="server">
SalesAndDiscounts
</div>
I want the LatestClassifieds
should come in first place and LatestReviews
to Come in place of LatestClassifieds
and so on and so forth. 我想
LatestClassifieds
应该来排在首位,并LatestReviews
到位前来LatestClassifieds
等等等等。 I want to do it by C# code. 我想用C#代码来做。 I have a datatable which has the sequence of ordering div for the page.
我有一个数据表,该数据表具有页面排序div的顺序。 According to the Sequence I want to organise DIV.
根据顺序,我想组织DIV。 I Find to cut paste for the textbox but not the asp control.
我发现要为文本框剪切粘贴,但不能剪切asp控件。 Is there any solution for cut paste Divs in C#??
在C#中有没有针对剪切粘贴Div的解决方案? any solution are surely appretiated.
任何解决方案肯定都值得赞赏。
There is something else you can try to archive the same; 您还可以尝试将其存档。
Add the Sequence/Priority column in you DB for each of the category. 在数据库中为每个类别添加“ 序列/优先级”列 。
Then wile fetching the data for DB short as per Sequence/Priority and then add it to HTML using c# code. 然后按照序列/优先级为DB提取简短的数据,然后使用c#代码将其添加到HTML。
The advantage here is that you will be able to change the location/occurrence of any item without changing you code. 这样做的好处是,您无需更改代码即可更改任何项目的位置/出现位置。
Hope it helps...!!! 希望能帮助到你...!!!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.