Hello,
I came across a rather odd issue. Isn't it possible to retrieve the Global:Area.ID with razor within a paragraphtemplate?.
My code returns "" - which means the ID doesn't exist? ..
@{
var areaId = GetValue("Global:Area.ID"); (have tried GetValue, GetString, Integer and etc. without any luck..)
switch(areaId)
{
case "1": pathForDepartmentList = "Default.aspx?ID=119";
break;
case "2": pathForDepartmentList = "Default.aspx?ID=119";
break;
case "4": pathForDepartmentList = "Default.aspx?ID=119";
break;
default: pathForDepartmentList = "rammer ikke!!";
break;
}
}
<form method="post" action="@pathForDepartmentList">
some code here...
</form>
Regards,
MikkelTO