I know this question is quite basic but since there is lot of confusion what can be used and not from the HTML 5 tags i wanna know if i can use drag and drop feature of HTML5 in my asp application? There is no code yet, so sorry about that. Scenario is that there is a tree view with a list of details about students, if these details are stored in a table, i want to drag and drop their ids(only the text not the whole table or row) from the table to my select query. is it possible? i went through the following questions but didn’t get a clear picture
ASP.net AJAX Drag/Drop? and Creating a drag and drop application in ASP.NET 3.5
I know this question is quite basic but since there is lot of confusion
Share
Sure you can. ASP.NET is a backend product that generates HTML and sends it down to client browsers. The question of whether or not ASP.NET can generate HTML5 markup isn’t as important as making sure that your audience will be using a browser that supports the features of HTML5 that you wish to implement in your app.
More to the point, however, is that 99% of the drag-and-drop implementations you’ll find on the internet use a JavaScript framework (jQuery, YUI, AJAX Control Toolkit, etc). While ASP.NET might be the vehicle you use to deliver the javascript to the browser, it in-and-of-itself is not responsible for creating drag-and-drop application — it is the javascript that creates the dynamic nature of the app in the browser.
Where ASP.NET gets involved is handling the updates/ajax requests that your client-side javascript app sends to it. Using your app as an example: dragging the student ID to your query would be done with javascript on the client, and the javascript would then send the query to your ASP.NET backend which would process the information and send the results back to your app in the browser (assuming it was a true ajax application).
Examples:
jQueryUI
YUI