-
export .aspx page to .html file to virtual directory
i have looked and looked for this and so far all the code i've downloaded simply doesnt work.
this code (below) works fine - however it opens up the "save file Dialog" and requires that the user select the path to save the .html file.
how can i by-pass that and save the file myself to say - a virtual directory?
any help is greatly appreciated
thanks
rik
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/html"
Response.ContentEncoding = System.Text.Encoding.UTF8
Response.AddHeader("Content-Disposition", "attachment;filename=Test.html")
Response.Charset = ""
EnableViewState = False
Dim oStringWriter As System.IO.StringWriter = New System.IO.StringWriter
Dim oHtmlTextWriter As System.Web.UI.HtmlTextWriter = New System.Web.UI.HtmlTextWriter(oStringWriter)
pnMyPanel.RenderControl(oHtmlTextWriter)
Response.Write(oHtmlTextWriter.ToString())
Response.Close()
Similar Threads
-
By piyushgpt1 in forum ASP.NET
Replies: 0
Last Post: 06-08-2007, 05:13 AM
-
By JavaFaces in forum Java
Replies: 0
Last Post: 02-12-2006, 07:27 PM
-
By Arafat Salman in forum VB Classic
Replies: 0
Last Post: 12-15-2001, 05:27 AM
-
By Danny Morrow in forum Enterprise
Replies: 2
Last Post: 03-31-2001, 02:35 PM
-
By Gene Black in forum Web
Replies: 2
Last Post: 07-07-2000, 10:27 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|