Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi Guys,
Is there any example of how to check a empty upload field in razor like you would do in XSLT?
XSLT
<xsl:variable name="pdfFile" select="newsFile" /> <xsl:if test="$pdfFile != ''"> <a target="_blank"> <xsl:attribute name="href"> <xsl:value-of select="newsFile"/> </xsl:attribute> </a> </xsl:if>
And Razor is it something like
@if(String.isNullOrEmpty.newsFile != null)
@if(!String.IsNullOrEmpty(Model.newsFile))
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Checked an upload file with razor
Hi Guys,
Is there any example of how to check a empty upload field in razor like you would do in XSLT?
XSLT
And Razor is it something like
is working on a reply...