I have an Label Control in asp.net 3.5 web page.
I dont want to copy the text from that control.How can I do this.
Asp.net label
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaish MathewsRank #225 · 11K reputationPosted Jan 20, 2011, 8:30 AM EST
Hi,
Below code will prevent right click and copy functionality. But not sure is this your need.
Label1.Attributes.Add("onmousedown", "alert('Content copy disabled');return false;");
George Onofrei56 reputationPosted Jan 20, 2011, 8:42 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Jan 20, 2011, 11:28 AM EST
Suthish NairRank #92 · 22.8K reputationPosted Jan 21, 2011, 1:22 AM EST