Hi friends,
Ques : I want to know that how can you disable the browser to view the code in ASP.NET. Please explain in brief?
How can you disable the browser
2 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
Gohil JayendrasinhRank #490 · 5K reputationPosted Apr 2, 2012, 5:38 AM EDT
ASPX:
Code-behind:
If it's helpful to you then please check as Accepted Answers
SenthilkumarRank #387 · 6.5K reputationPosted Apr 2, 2012, 6:50 AM EDT
I do not think its worth doing such disabling. Because the browsers they have more advanced techniques to see the view source even what ever you do. The inspect, developer tools will enable to see the code.
form1.disabled = "true" is different one. Because it will disable the controls in the web page.
You can use this script to stop the view source.
But still they can view by View menu and source option.
You may use the
I suggest you to find the alternative way to encrypt the html.