.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Imran Ghani
Sohaib Khalid

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

User can not select TEXT for copy paste from my .aspx page...

Posted By: susant     Posted Date: October 28, 2008    Points:2   Category :ASP.Net

i am developing one web-site for SMS.. when the user will click on the heading of SMS it will transfer to other page...

My requirement like:

There user can READ the SMS but he/she can not select the SMS for COPY PASTE (by pressing left mouse btn and select that SMS) for copy paste in other place... HOW TO IMPLEMENT THAT..??

ThanX In Advance

Author: Rahul             
Posted Date: October 28, 2008     Points: 5   

You can use javascript to disable selection

if (document.all) document.onselectstart = function () { return false; };

Author: susant             
Posted Date: October 29, 2008     Points: 5   

ThanX Rahul.. Your code if fine...


Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend