Hi Jane
Thank you again for your help and effort,
I used the code and all working fine, hope I have it correct and will test.
The new zipped app does not have any embed code in webhandler, perhaps just zipped the wrong app, unless I'm missing something.
My code and embed point I used.
thanks again,
Johan
p_web._SendFile PROCEDURE(string p_FileName,Long p_header=NET:SendHeader)
! Start of "NetTalk Method Data Section"
! [Priority 1500]
loc:parent string(252) ! should always be a lower-case string
loc:done Long
loc:filename string(252)
! [Priority 6500]
! End of "NetTalk Method Data Section"
CODE
! Start of "NetTalk Method Executable Code Section"
! [Priority 1500]
loc:parent = self.PlainText(Lower(self.GetValue('_parentProc_')))
loc:filename = SELF.GetPageName(Lower(p_FileName))
! Start of "Before SendFiles in DLLs"
! [Priority 5000]
!#############################
block# = false
case loc:filename
of 'nwp_wineshop'
block# = true
of 'aboutus'
block# = true
of 'nwp_aboutus'
block# = true
end !case
if block# = true
p_web.trace('case triggered:' & loc:filename)
p_web.SendError (404,'The page cannot be found', 'The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.')
return
end
!#############################
! End of "Before SendFiles in DLLs"
loc:done = NetWebDLL_avc_b_SendFile(p_web, loc:Filename, loc:Parent)
If loc:Done then Return.
loc:done = NetWebDLL_avcfunc_SendFile(p_web, loc:Filename, loc:Parent)
If loc:Done then Return.
! [Priority 3040]
do Remap:tvcweb
do CaseStart:tvcweb