Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / April 2006

Tip: Looking for answers? Try searching our database.

Disable Saving Page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bishoy George - 05 Mar 2006 08:58 GMT
In internet explorer ---> File ---> Save As:  will save the page.
Is there anyway to disable saving the page by jscript or javascript.
Pandurang Nayak - 17 Mar 2006 00:46 GMT
No, you cannot possible disable HTML or any other content that reaches the
browser from getting saved.

Even if you did tricks like open in a window without the toolbar, menubar
and context menus using window.open(...), your smarter users will still know
that all files before they get rendered get into the Temporary Internet Files
folder and can be picked from there.

You might want to do the window.open(...) with some cache expiry headers -
that will reduce the chances, but definetelly not eliminate it  - a smart
user will still figure a way out.

Regards,
Pandu

Signature

blog: www.thinkingMS.com/pandurang

> In internet explorer ---> File ---> Save As:  will save the page.
> Is there anyway to disable saving the page by jscript or javascript.
Bishoy George - 22 Mar 2006 12:31 GMT
Could you please write me down some of these cache expiry headers?

---- Original ----
> No, you cannot possible disable HTML or any other content that reaches the
> browser from getting saved.
[quoted text clipped - 15 lines]
>> In internet explorer ---> File ---> Save As:  will save the page.
>> Is there anyway to disable saving the page by jscript or javascript.
Pandurang Nayak - 22 Mar 2006 19:50 GMT
Depends on what you are using. ASP, ASP.NET or just plain HTML.

Eventually, you have to set some headers - but if you are using ASP.NET,
just use Response.ExpiresAbsolute

Check MSDN and you'll get many articles on cache expiry.

Signature

blog: www.thinkingMS.com/pandurang

> Could you please write me down some of these cache expiry headers?
>
[quoted text clipped - 18 lines]
> >> In internet explorer ---> File ---> Save As:  will save the page.
> >> Is there anyway to disable saving the page by jscript or javascript.
Bishoy George - 02 Apr 2006 13:57 GMT
I use ASP.NET 2.0 with C#
I made that:

Response.ExpiresAbsolute.AddSeconds(1);

but the url of this page is still present

-----

> Depends on what you are using. ASP, ASP.NET or just plain HTML.
>
[quoted text clipped - 29 lines]
>> >> In internet explorer ---> File ---> Save As:  will save the page.
>> >> Is there anyway to disable saving the page by jscript or javascript.
Bishoy George - 03 Apr 2006 09:24 GMT
I tried also,

Page.Response.Cache.SetCacheability(HttpCacheability.NoCache);

but it doesn't work

>I use ASP.NET 2.0 with C#
> I made that:
[quoted text clipped - 40 lines]
>>> >> In internet explorer ---> File ---> Save As:  will save the page.
>>> >> Is there anyway to disable saving the page by jscript or javascript.
Pandurang Nayak - 03 Apr 2006 11:30 GMT
Bishoy,

Are you trying to get the URL in the IE address bar memory removed?  
Expiring cache will not help you do that.

Expiring cache means (below the hood) that there will nothing stored in the
Temporary Internet Files folder. This ensures that when the user visits the
page again, it will be reloaded from the server and not from the local
browser cache.

Removing something from the IE URL list is not something that can be
controlled by script for the simple reason that it would violate browser
privacy.

Regards,
Pandurang
Signature

blog: www.thinkingMS.com/pandurang

> I tried also,
>
[quoted text clipped - 46 lines]
> >>> >> In internet explorer ---> File ---> Save As:  will save the page.
> >>> >> Is there anyway to disable saving the page by jscript or javascript.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.