Re: Save ASPX page on client programmatically
- From: "Ornette" <abstrait...nospam...@xxxxxxx>
- Date: Mon, 5 Mar 2007 04:11:50 +0100
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.
.
- Follow-Ups:
- Re: Save ASPX page on client programmatically
- From: Steven Cheng[MSFT]
- Re: Save ASPX page on client programmatically
- References:
- Re: Save ASPX page on client programmatically
- From: Norman Yuan
- Re: Save ASPX page on client programmatically
- From: FreeNEasy
- Re: Save ASPX page on client programmatically
- From: Steven Cheng[MSFT]
- Re: Save ASPX page on client programmatically
- Prev by Date: Re: Save ASPX page on client programmatically
- Next by Date: Securing pages with 1.1
- Previous by thread: Re: Save ASPX page on client programmatically
- Next by thread: Re: Save ASPX page on client programmatically
- Index(es):
Relevant Pages
|