NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Stu on August 28, 2012, 11:12:32 PM

Title: Custom Error Page - Pulling in a NetWebPage
Post by: Stu 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
Title: Re: Custom Error Page - Pulling in a NetWebPage
Post by: Bruce 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
Title: Re: Custom Error Page - Pulling in a NetWebPage
Post by: Stu 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).