S
shapper
Hello,
I have the following:
<%= Html.TextBox("ThumbnailPath",
Path.GetFileName((string)ViewData["ThumbnailPath"] ??
ViewData.Model.SlidePaper.Slide.ThumbnailPath.ToString()) )%>
I get an error when ThumbnailPath is null ... How can I avoid that?
Can I still keep my code without if block?
Thanks,
Miguel
I have the following:
<%= Html.TextBox("ThumbnailPath",
Path.GetFileName((string)ViewData["ThumbnailPath"] ??
ViewData.Model.SlidePaper.Slide.ThumbnailPath.ToString()) )%>
I get an error when ThumbnailPath is null ... How can I avoid that?
Can I still keep my code without if block?
Thanks,
Miguel