Developer forum

Forum » Development » Page header tag reset

Page header tag reset

Marco Santos
Reply
Hello.

Is there a way to reset a tag that is set at page level (in default.aspx)?

In the default.aspx I have

Pageview.TemplatePage.SetTemplateValue("AOL1.Login.BookingReference", userabreu.BookingReference);

The problem is the variable is only set at module level, so the first time I land on the page the value is empty. Is there a way to reset the tag, without resetting it in the module?

Thanks.


Replies

 
Nicolai Høeg Pedersen
Reply
Hi Marco

Not quite sure I understand when you say reset...?

But in your template you can test if the template tag has a value using if defined: http://templates.dynamicweb-cms.com/TemplateTags/Dynamicweb-template-tags/General-tags/If-Defined-tags.aspx

 
Marco Santos
Reply
Found another way to so solve the problem. Thanks anyway.

 

You must be logged in to post in the forum