Convert report to ASP/ASPX?

Welcome Forums General PowerShell Q&A Convert report to ASP/ASPX?

Viewing 2 reply threads
  • Author
    Posts
    • #163401
      Participant
      Topics: 4
      Replies: 5
      Points: 44
      Rank: Member

      Hi, I created a PS scheduled task to write an HTML report, using ConvertTo-HTML, to a set of IIS web servers.  However, I’m wondering if there is an easy way to convert the output to ASP or ASPX.  This particular website uses forms authentication, which doesn’t protect static content like HTML, and I’d prefer to just write the file as ASP/ASPX than contact another team to modify the handlers in their web application.

      I appreciate any advice you all can offer.

      Regards,

      Ryan

    • #163422
      Senior Moderator
      Topics: 9
      Replies: 1236
      Points: 4,443
      Helping Hand
      Rank: Community Hero

      To my knowledge , No. May be you can custom create it by building the page one line at a time. Instead of xreating HTML report, use ForEach object then construct the lines for each element. Or have template kind of aspx file , then do a find/replace operation using a foreach.

    • #163527
      Participant
      Topics: 1
      Replies: 64
      Points: 363
      Helping Hand
      Rank: Contributor

      So, this isn’t really a powershell question….BUT here’s a link that might point you in the ‘right’ direction:

      https://forums.asp.net/t/1779252.aspx?embedding+existing+html+page+inside+aspx+page

Viewing 2 reply threads
  • The topic ‘Convert report to ASP/ASPX?’ is closed to new replies.