locked
HtmlTextWriter over https RRS feed

  • Question

  • User-2112810568 posted

     Hello,

    I'm trying to use an HTMLTextWriter over https and it errors out. What do I have to change to get it to work. It works fine over http.

    Or, how can I get the file to download over http even though the page is using https? 

    By the way, I'm using the writer to output an excel file.

    Thanks,

     

     

     

     

    Friday, September 18, 2009 1:55 PM

Answers

  • User-227801874 posted

    Try with HttpCacheability.Private in place of HttpCacheability.NoCache

    hope this helps.....

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, September 18, 2009 2:47 PM

All replies

  • User-227801874 posted

    In my application i am using HtmlTextWriter for export to excel i was having same problem over https so i have removed HttpCacheability.NoCache... and it works....

    Hope it helps....

    Friday, September 18, 2009 2:30 PM
  • User-2112810568 posted

    I'm using the no-cache to prevent people from using their back button after a logout.  If I disable this, won't I be opening up a security hole?

    Friday, September 18, 2009 2:34 PM
  • User-227801874 posted

    Try with HttpCacheability.Private in place of HttpCacheability.NoCache

    hope this helps.....

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, September 18, 2009 2:47 PM
  • User-2112810568 posted

    That did work. Thanks for the help.

    Friday, September 18, 2009 2:56 PM