However, I noticed something when I was catching all types of exceptions.
Maybe this question should be posted on another thread but I give you the details here.
My error message that was assigned to a field MessageErreur was not displayed on my page.
In my page I have the following :
<dot:Literal Text=“{value: MessageErreur}” style=“color: Red; font-size: 20px; font-weight: normal;” />
In my ViewModel I declared the field as follows :
public string MessageErreur { get; set; }
The field is then reset in the Init method :
public override Task Init()
{
try
{
MessageErreur = string.Empty;
But when I change its value in the OnDownloadFile method, the page does not show any value for this field.