Hello everyone, I am going to share the code
sample for check if ViewBag property is null or not exists in CS HTML(Razor).
The code detail as given blow.
Syntax :
@if (ViewBag.IsExist !=
null && ViewBag.IsExist
== true)
{
<label> Your
password has been reset successfully!</label>
}
For more detail you can go below link
http://stackoverflow.com/questions/28313324/how-to-check-if-viewbag-property-is-null-or-not-exists
http://stackoverflow.com/questions/28313324/how-to-check-if-viewbag-property-is-null-or-not-exists