Craig100
08/19/2023, 7:42 PMif (!Model.Approved) {
throw new HttpException(404, "Not Found");
}
Or Ideally a Redirect, as I don't think throwing exceptions is very healthy. This is just a guess but does anyone know the right syntax within an UmbracoViewPage?
Thanks.huwred
08/20/2023, 6:56 AMCraig100
08/20/2023, 8:57 AMhuwred
08/20/2023, 9:00 AMcsharp
Context.Response.Redirect(...);
return;
The return is important.Craig100
08/20/2023, 10:01 AM