Export aspx page to HTML

Discussion in 'ASP .Net' started by jeremy.rice@alkermes.com, Dec 27, 2005.

  1. Guest

    Does anyone know if there is a way to programmatically take an aspx
    page and export it to an html file as if the user had chosen "Save
    As..." from the File menu in IE?

    I need to be able to create hundreds of user profiles from a
    printer-friendly page I previously created by looping through a
    DataReader or DataSet and export each profile into a separate html file
    saved on the hard disk. It can be server-side or client-side.

    Does that make sense?

    Thanks in advance,
    Jeremy
     
    , Dec 27, 2005
    #1
    1. Advertising

  2. You could always download each using the HttpWebRequest/HttpWebResponse
    which basically which just asks the server for the page.

    <> wrote in message
    news:...
    > Does anyone know if there is a way to programmatically take an aspx
    > page and export it to an html file as if the user had chosen "Save
    > As..." from the File menu in IE?
    >
    > I need to be able to create hundreds of user profiles from a
    > printer-friendly page I previously created by looping through a
    > DataReader or DataSet and export each profile into a separate html file
    > saved on the hard disk. It can be server-side or client-side.
    >
    > Does that make sense?
    >
    > Thanks in advance,
    > Jeremy
    >
     
    Peter Rilling, Dec 27, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?RGF2aWQgVmFsbGU=?=

    Invalid export DLL or export format

    =?Utf-8?B?RGF2aWQgVmFsbGU=?=, Oct 29, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    3,626
    =?Utf-8?B?RGF2aWQgVmFsbGU=?=
    Oct 29, 2003
  2. Mr. x
    Replies:
    1
    Views:
    1,973
    John Timney \(Microsoft MVP\)
    Nov 30, 2003
  3. =?Utf-8?B?WTJLUFJBQlU=?=

    Html / Aspx Export to Excel

    =?Utf-8?B?WTJLUFJBQlU=?=, Sep 27, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    463
    =?Utf-8?B?WTJLUFJBQlU=?=
    Sep 27, 2006
  4. Pradnya Patil
    Replies:
    0
    Views:
    3,256
    Pradnya Patil
    Jan 14, 2007
  5. Maarten Porters
    Replies:
    1
    Views:
    432
    Florian Gilcher
    Jul 28, 2008
Loading...

Share This Page