.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Disable Page source

Posted By:      Posted Date: October 19, 2010    Points: 0   Category :ASP.Net

Hi friends,

        I have the requirement to protect the page source not only from right clicking but also View/page source.It must work in all browsers.

                   Ideas can also appreciated.

                                            Thanks in advance........

View Complete Post

More Related Resource Links

TabControl - Disable/Enable tab page

I have a tabcontrol with 2 pages. OnLoad the 2nd Tabpage shall be disabled (grayed out and not selectable). Later with code I need to enable the 2nd tab. Any Ideas how this can be done? please./Morten

SSIS And Sybase Source OLEDB connectivity issue with code page for character set

Hi I am using SSIS 2008 to connect the Sybase Server version 15.0.3 64-bit. The default character set id used by this Sybase server is 4 (i.e. roman8). (http://manuals.sybase.com/onlinebooks/group-charc/chg0300e/charsets/@Generic__BookTextView/1706;pt=266) I had installed Sybase Client for Sybase OLEDB Driver (ASEOLEDB) to integrate this in OLEDB Source Editor. As per guidance from one of the past MSDN forum discussion, I tried setting property of AlwaysUseDefaultCodePage property to "FALSE"  (http://social.msdn.microsoft.com/forums/en-US/sqlintegrationservices/thread/f5af9328-e1fb-48d7-a85d-1d08bb7cf0e5/). However, I am still experiencing error message as follows:- ********************************************************* Error at Package2 [Connection manager "xxxxxx.xxxxxxx"]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available.  Source: "ASEOLEDB"  Hresult: 0x80004005  Description: "[00000] [Native Code: 30061] [ASEOLEDB]Could not load code page for requested charset". An OLE DB record is available.  Source: "ASEOLEDB"  Hresult: 0x80004005  Description: "[1ZZ001] [Native Code: 30016] [ASEOLEDB]Internal Error". Error at Data Flow Task 2 [OLE DB Source [1]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMC

Disable Master Page Menu

Dear all, How can I disable the master page menu? The following line does not work. this.Master.findcontrol("menu1").visible=false;  Moreover, if this line is put before the function database processing (Code Behind) in the button click, would the menu bar become invisible during function database processing? I think it is different from web application and intranet application.

How can I disable hyperlinks of the sitemappath (page breadcrumb)

How can I disable hyperlinks of the sitemappath in the page breadcrumb   I do want to show the path, but without the links. I found     RenderCurrentNodeAsLink = False But this only applies on the last part of the path (current page). And there no such thing as   RenderParentNodeAsLink...   There has to be an easy way...

Saving Page Source

I am wondering if it is possible to programatically save a web page's page source.  Example:From website www.MyTestWebsite.com I want to save www.Google.com's Page Source to a string using C#.  Any suggestions?-NUStudent

Asp.net Disable Page

 Hello, we are working on an asp.net website that generates a report. The user selects various listboxes that customizes the report. WHen they click the "Run  Report" button, we want to "grey out" the page or either disable everything on the page so that they cannot click anythign while the report is generating. Originally, we tried this in ajax, but we could never get this to work because ajax doesn't allow round-trips?Anyone have any ideas on how to do this?  Thanks in advance!

how will take the html controls value from source code to code behind of asp.net page


i created a calendar user control in asp.net+c#.it have two html text boxes and one img button.but i dont know ,how will take
the values to code behind of asp.net from html text boxes values at runtime on the onclick of html img button.....Any ideas????.

This is my main code


      <div>View from:</div>
         <div>  <input type="text" name="showdia" id="showdia" size="9" value="10/04/2010"><input onclick="return showCalendar('showdia', 'mm/dd/yyyy');"  type="image" src="images/cal.gif" align="absmiddle" name="reset" style="cursor:pointer"></div> 
         <div>  <input type="text" name="showdiafin" id="showdiafin" size="9" value="10/04/2010"><input onclick="return showCalendar('showdiafin', 'mm/dd/yyyy');" type="image" src="images/cal.gif" name="reset" style="cursor:pointer" align="absmiddle"></div>
    <div align="center" style="padding:3px;"> <img src="images/language/english/view.g

encrypt aspx page at client side view source

how can we encrypt ASPX page at client side view source ? So that nobody can see my controls and links.

disable a button if the required page has no data


Hi all

I have the following scenario and I'm not sure how to go about in resolving it.  Any ideas would gratefully recieved.

I have a page(A) with a button that when selected opens a new page(B) with a populated gridView.

However if the gridview hasn't got any data to display, rather than use the  <EmptyDataTemplate> within the gridview, I'd rather use disable/lock the button on page(A) thus preventing access to page(B)

Is this possible?  How on earth would I go about such a task ?

How to Disable Add all authenticated users link in Add user page of Sharepoint



I want to disable the link "Add all authenticated users " appearing on "Add user" page. Is there a way to disable or remove this link from the "add user" page.

I referred a blog http://sfguyalex.blogspot.com/2008/08/all-authenticated-users-please-stand-up.html where it mentions to remove the link by editing page in 12 hive AclInv.aspx.

Before doing that, is there any way thru configuration I stop users by clicking on this link?




disable button in page load click event using javascript



i have button its  enable false in aspx page, if i click the page load  click event  then button should enable

looking forward the reply.

Register a script block to page without added to view source


Hi Experts,

I want to know do is there any way to register a script block to web page without the script code is added to view source?


I need Urgent Help using Sql data source in my ASP page


can somebody tell me how to delete child records in the first step

check if there is no more child using count row number  if = 0  delete the key in parent table

parent table must have always child records in my case

by Using sql data source Delete tab

Source Revision Tool + Methodology for Single Page Application



My team is developing an ajax based "one page application" using several 3rd party controls. C# at the server side.

What is the recommanded tool (visual source safe? tortoise svn? tortoise hg? etc).

What is the methodology for team work with the tool (team leader responsible for check in's/ commit's and merges? developers are responsible for their user controls check in's? etc).

I'll greatly appreciate answer by someone with experience in such development.


Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor

Using jQuery to directly call ASP.NET AJAX page methods

Here I am looking to explain how to call page methods using jQuery. Using jQuery to directly call ASP.NET AJAX page methods

Microsoft StyleCop: Source Code Analyzer for C#

StyleCop is similar in many ways to Microsoft Code Analysis (specifically FxCop), but there are some important distinctions. FxCop performs its analysis on compiled binaries, while StyleCop analyzes the source code directly. For this reason, FxCop focuses more on the design of the code, while StyleCop focuses on layout, readability and documentation. Most of that information is stripped away during the compilation process, and thus cannot be analyzed by FxCop.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend