By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,616 Members | 1,184 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,616 IT Pros & Developers. It's quick & easy.

Disable View Source Button?

P: n/a
Joe
Hi,

I have a customer who wants the View Source button disabled when
people view his website. I explained to him how in ASP.NET the "real"
code is in the code-behind module and not visible to the end-user
anyway, but he really wants that View Source button disabled.

Can anyone tell me how to do this?
JD

Jul 15 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
You can't. Pardon me, but your customer sounds like they arejust being
ignorant of the nature of the web's architecture. HTML, JavaScript, CSS and
any other client-side code are not protectable by copyright laws. Anyone
can look at this code (and reuse it if they wish).
"Joe" <de*******@cox.netwrote in message
news:11**********************@g37g2000prf.googlegr oups.com...
Hi,

I have a customer who wants the View Source button disabled when
people view his website. I explained to him how in ASP.NET the "real"
code is in the code-behind module and not visible to the end-user
anyway, but he really wants that View Source button disabled.

Can anyone tell me how to do this?
JD

Jul 15 '07 #2

P: n/a
Even if you were to successfully disable the right-click mouse event, the
page contents are going into the browser's cache anyway where anybody with an
above room-temperature IQ can view them at their pleasure.

The best approach here would simply be to patiently explain to your client
that what they want is basically, a "lost cause".
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder(BETA): http://www.blogmetafinder.com

"Joe" wrote:
Hi,

I have a customer who wants the View Source button disabled when
people view his website. I explained to him how in ASP.NET the "real"
code is in the code-behind module and not visible to the end-user
anyway, but he really wants that View Source button disabled.

Can anyone tell me how to do this?
JD

Jul 15 '07 #3

P: n/a
"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:52**********************************@microsof t.com...
The best approach here would simply be to patiently explain to your client
that what they want is basically, a "lost cause".
Absolutely correct which, as any experienced IT consultant knows only too
well, is more often than not the hardest job of all... :-)
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 15 '07 #4

P: n/a
On Jul 15, 9:35 pm, nahid <nahid...@gmail.comwrote:
no menu and tool will be there...no menu and tool will be there...your client may be happy a
bit .....by the time being try to convenes him
guys i know all... please you read last line carefully i just tell him
how maximum he can do....
>your client may be happy a bit .....by the time being try to convenes him
the client is crazy and temporary stop him crazily...then i said
(convenes him) ....

thnaks
all

Jul 15 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.