Re: Save ASPX page on client programmatically

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello,

Yes, saving to the client's computer directly is quite impossible as it runs in a sandbox.
I think the only solution is sending a stream (document like pdf or something else) and the user can clic "save as" or "open".

Maybe you can change the behaviour if you users are authenticated. You can send it by email ?

Or you can format it in a printable version and put a "print" button (most of the websites do this + email).

Ornette

"Steven Cheng[MSFT]" <stcheng@xxxxxxxxxxxxxxxxxxxx> a écrit dans le message de news:Oj9p3ssXHHA.2508@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi FreeNEasy,

As some other members have provided some suggestion about retrieving page's
content, for example, use javascript DOM api to get the innerHTML of page
body.

#In Javascript I Want To Get The Page Source, And Store It In A Variable?
http://qa.techinterviews.com/q/20060731161006AAQncKe

The problem here is save the content to a file on client-side file system.
Generally, browser based web page application has natural security
restrictions on accessing client user's local resource(such as file system,
network, registry ....). Therefore, the default client-script code can not
create , modify or delete any file on the client system. To do this, you
need to either use windows script or activeX component which can leverage
strong code to do those privilege operations, however, this require the
client user to allow such strong code be executed in webbrowser. For your
scenario, I think this seems not quite convenient since you need to ask
every client user to adjust their client browser security setting.

Do you think it possible that you simply use a button to popup a help page
that demonstrate the steps for saving the a page in browser?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================



This posting is provided "AS IS" with no warranties, and confers no rights.












.



Relevant Pages

  • RE: folder virtualisation
    ... client GUI application. ... Yes, based on my feedback, it seems that the named pipe object may be ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.platformsdk.security)
  • RE: Web App With Signature
    ... use some rich client approach such as ACTIVEX control. ... retrieve protect resource on client(such as file system or certificate ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: asp.net pluggable pages
    ... 1.According to different client users, you can create multiple ASP.NET ascx ... users that will need customized GUI. ... ASP.NET support dynamically create server controls. ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: FileCopy vs. Read & Write or CopyFile API
    ... synchronize a document in server to its client with VB FileCopy function. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vb.general.discussion)
  • Re: Access denied when trying to move directory in use
    ... File System expert to help you find out the root cause. ... Anyway, once I got any further feedback from the File System dev team, I ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.win32.programmer.kernel)