?
Solved

hide or show empty view source from .aspx web page

Posted on 2010-01-12
4
Medium Priority
?
637 Views
Last Modified: 2013-12-17
Hi All,
Have a default.aspx page. Avoid right click to view viewsource or show emty view source . Prefer not to use Javascript since user can disable the scripts and reload the page to see the viewsource.

Kind Regards,
Pooja
0
Comment
Question by:poojasureshkumar
  • 2
  • 2
4 Comments
 
LVL 10

Expert Comment

by:codingbeaver
ID: 26296146
I don't believe it is possible. "View Source" is part of browser's feature, you don't have control of it.

What are you trying to accomplish?
0
 

Author Comment

by:poojasureshkumar
ID: 26296500
Hi Codingbeaver,
Simple javascript will void right click. But it could be accomplished by add-ons. I need the way to show emtpy view source or hide view source .
Reason is i don't want user to see the function name and way it handled on the form fields.

Kind Regards,
Pooja
0
 
LVL 10

Expert Comment

by:codingbeaver
ID: 26296651
If your functions are handled in code-behind, then user only sees the rendered HTML contents, they cannot see the details. As far as the function names and form fields, you can't hide them. Even you use JavaScript to disable the right-click, user can always click "View" from the browser menu and choose "Source" to view the HTML source.

Why do you not want user see the source? Without the source, browser cannot display anything.
0
 

Accepted Solution

by:
poojasureshkumar earned 0 total points
ID: 26476259
Hi codingbeaver,
Handled in myself in javascript. but it is wasy to break. No problem.

Kind Regards,
Pooja
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
There may be issues when you are trying to access Outlook or send & receive emails or due to Outlook crash which leads to corrupt or damaged PST file. To eliminate the corruption from your PST file, you need to repair the corrupt Outlook PST file. U…
Suggested Courses
Course of the Month8 days, 5 hours left to enroll

616 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question