NetTalk Central

Author Topic: Custom Error Page - Pulling in a NetWebPage  (Read 4218 times)

Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Custom Error Page - Pulling in a NetWebPage
« on: August 28, 2012, 11:12:32 PM »
Hi Bruce,

Just wondering if it's possible, in the WebHandler "MakeErrorPacket" embed, to do the following:
Code: [Select]
!* Custom Error Page *
if p_ErrorNumber = 404
  self.HeaderDetails.ResponseNumber = '404'   
  self.HeaderDetails.ResponseString = 'Page Not Found'
  ReturnValue = self.CreateHeader(self.HeaderDetails) & '<!-- Net:w_ErrorPage -->'
  Return ReturnValue
End

The above doesn't work. So that is not possible.

BUT .. Is the idea possible? - to pull in an existing NetWebPage
Cheers,

Stu Andrews

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11308
    • View Profile
Re: Custom Error Page - Pulling in a NetWebPage
« Reply #1 on: August 28, 2012, 11:21:45 PM »
yeah, it's not as simple as that unfortunately Stu. I'll put it on the list for the future though.

cheers
Bruce

Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Re: Custom Error Page - Pulling in a NetWebPage
« Reply #2 on: August 28, 2012, 11:47:27 PM »
Thanks Bruce!

Will be really handy to get a look'n'feel going (having the site menu, etc just there).
Cheers,

Stu Andrews