NetTalk Central

Author Topic: Redirecting from one NetWebForm to another  (Read 3244 times)

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Redirecting from one NetWebForm to another
« on: March 13, 2012, 04:58:42 AM »
Hi Guys,

From my application IndexPage I am calling the following Net-procedures:

<!-- Net:PageHeaderTag2 -->
<!-- Net:fWizard -->
<!-- Net:PageFooterTag -->

When I redirect from the NetWebForm (fWizard) to another NetWebForm using the "URL on Save" option,
... the second NetWebForm page opens, with the initial page-Header still displayed op top of the page, but the formatting of the header is all wrong.

The redirected page seems to lose the initial header size / formatting.

For example:
Initially the logo was resized, the border of the header were removed.
When the second NetWebForm page opens, the border is back, logo size is wrong, etc.

1.  Is there a way to retain the original header formatting, when redirecting to internal page? OR
2.  Is there a way to reload NEW HEADER when redirecting to internal page?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Redirecting from one NetWebForm to another
« Reply #1 on: March 13, 2012, 06:56:12 AM »
>> the second NetWebForm page opens, with the initial page-Header still displayed op top of the page, but the formatting of the header is all wrong.

the Form will use the Generic Header and Footer if called directly.

>> The redirected page seems to lose the initial header size / formatting.

there is no "initial" - the page you are going to is a whole new page. Obviously it'll display whatever/however you've told it to display. If you are calling a Browse or Form or Year procedure directly it takes the generic header and footer (unless those are overridden).

>> 1.  Is there a way to retain the original header formatting, when redirecting to internal page? OR
>> 2.  Is there a way to reload NEW HEADER when redirecting to internal page?

It always loads a new header. I suspect the new header is not PageHeaderTag2.

cheers
Bruce


rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Re: Redirecting from one NetWebForm to another
« Reply #2 on: March 13, 2012, 12:54:40 PM »
Thanks Bruce,

I tested and the new page automatically loads a new header.
It goes to PageHeaderTag procedure as default ...

I copied PageHeaderTag2 to PageHeaderTag and it now shows the same header :-)

As far as I can see, this is not specified anywhere, but default-internal action?

Regards
Rupert

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Redirecting from one NetWebForm to another
« Reply #3 on: March 14, 2012, 12:18:09 AM »
it's specified on the WebServer  procedure, extension template.
Generic Header and Footer.
It can be overridden at the procedure level, on the Advanced tab.

Have you worked through the NetTalk book at all? I'm thinking there are a lot of concepts in there that you appear to be missing, and it's making your learning harder.

cheers
Bruce