Pages

Thursday 30 May 2013

How To Disable Drag and Drop Option in Text box or Text area Controls in C# Asp.Net

How To Disable Drag and Drop Option in Text box or Text area Controls in C# Asp.Net


Program:

.Aspx File:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
</head>
<body ondragstart="return false" draggable="false">
<b>Try to Drag and Drop Text Here :</b> <input type="text" name="txt" id="txtname" />
</body>
</html>

Live Demo:

Try to Drag and Drop Text Here :

No comments:

Post a Comment