且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在运行时移动ASP.NET的控件。

更新时间:2023-12-06 15:27:52

标准ASP.NET服务器控件不支持Drad和Drop功能。您需要实现客户端(JavaScript)来支持它或使用预处理库来为您处理。您可以使用的一些选项是:



HTML 5 Drag并放弃

JqueryUI Draggable

自定义JavaScript拖放

AJAX Control Toolkit ReorderList Control

I want to drag and drop the label around my web form so help me get the solution for it.. As i am new to .net so please me to find solution.

What I have tried:

m getting all solutions in windows form but i want in web form

Drad and Drop functionality isn't supported for standard ASP.NET Server Controls. You need to implement a client-side (JavaScript) to support that or use a pre-cooked library that handles that for you. A few options that you can use are:

HTML 5 Drag and Drop
JqueryUI Draggable
Custom JavaScript Drag and Drop
AJAX Control Toolkit ReorderList Control