473,289 Members | 2,108 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

Disable View Source Button?

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
4 3811
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
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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bruno Alexandre | last post by:
Hi guys, If I want to block a user to change a form after submiting, I add a function that will disable the submit button, but when I'm getting the form collection (using post or get...
11
by: yaktipper | last post by:
This explains how to disable the view source / right-click menu in Netscape 4, Netscape 6 and Internet Explorer (IE). <script language="JavaScript"> //This code is the beginning of the right...
1
by: KS | last post by:
I write my html pages as .jsp files (java server pages). The final result when the page is rendered in the browser, and I do a view source, is nothing less the normal HTML codes. The problem is I...
6
by: nntp | last post by:
I have a set of links which I want search engines to crawl them, but I want to disable them from my visitors, so I will ask the link owners to pay me to let me enable them. <a disabled...
29
by: lori3laz | last post by:
How do you disable the right click>view source option on web pages so people can't view your coding and copy it? What's the html I need to include in my website to utilize this feature? Thank...
11
by: Joey | last post by:
Hello, In my C# asp.net 2.0 application, I have a webform with a button server control on it. The webform, like most others in the site, subscribes to a master page. I have determined that the...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
1
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I disable the right mouse button? -----------------------------------------------------------------------...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.