Hi,
After submiting the form, On error handling in Catch, the execption is assign to variable error
After render the vairable error is null
Could please help how to assign execption value to variable error after render
Please see below code.
@{
string error { get; set; }
protected override void OnInitialized()
{
try{}
finaly{}
}
async protected override Task OnAfterRenderAsync(bool firstRender)
{
var relativeUri = navigationManager.Uri;
var uri = navigationManager.ToAbsoluteUri(relativeUri);
if (firstRender){}
if (QueryHelpers.ParseQuery(uri.Query).TryGetValue("isSessionTimeout", out var tempTimeout))
{
notification?.ShowError(error);
//error = "Session timed out";
showToast = true;
}
}
async Task OnSubmit()
{
try{
}
catch(exception ex){
error = ex.ToString();
}
}
}
Hi Team, Please guide on above issue.
Thanks
Hi,
Could you please update on the same
Thanks,
Vishnu Vardhanan