November Happy Hour will be moved to Thursday December 5th.

Though content is exist I want to show this content (Page) not found for certain condition if this content brows from URL

Vote:
 

Hi,

Can anyone help to do the below job

Though content is exist  I want to show this  content (Page) not found for certain condition if this content brows from URL.

Thanks

Sourav

#175017
Feb 09, 2017 14:17
Vote:
 

Hi,

In your controller you can throw a 404 error:

if (true)
{
    throw new HttpNotFoundException();
}
#175045
Feb 09, 2017 20:26
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.