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. Advertisements

  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. Advertisements

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. Sriram Mallajyosula

    How do I post data from aspx page to another aspx page.

    Sriram Mallajyosula, Nov 5, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    1,269
    Steve C. Orr [MVP, MCSD]
    Nov 5, 2003
  2. Mr. x
    Replies:
    1
    Views:
    2,225
    John Timney \(Microsoft MVP\)
    Nov 30, 2003
  3. Marco Antonio Montalvo Durán
    Replies:
    2
    Views:
    4,609
    Matt Morris
    Jan 23, 2004
  4. =?Utf-8?B?Uk1M?=
    Replies:
    1
    Views:
    730
    =?Utf-8?B?QW5keSBMdWtzaWM=?=
    Sep 16, 2005
  5. Progman
    Replies:
    2
    Views:
    2,150
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Feb 13, 2006
  6. uto
    Replies:
    3
    Views:
    830
    Michael Hamrah
    Mar 8, 2006
  7. MadHatter51
    Replies:
    1
    Views:
    1,137
    Hakan Lambracht
    May 17, 2006
  8. =?Utf-8?B?WTJLUFJBQlU=?=

    Html / Aspx Export to Excel

    =?Utf-8?B?WTJLUFJBQlU=?=, Sep 27, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    528
    =?Utf-8?B?WTJLUFJBQlU=?=
    Sep 27, 2006
Loading...