I am trying to create a new Visual WebPart in SharePoint Server with a Resource file that deployed in the Global Resource folder App_GlobalResources, but the problem is I can't use a resource key in the frond HTML code of my SharePoint Visual WebPart as below
<div class="col-md-3">
<label for="username" class="form-label">
<asp:Literal runat="server" Text="<%$Resources:ResourceFile,FullName%>"/></label>
</div>
When I perform build for the SharePoint solution, I get this error "The ResourceFile Name does not exist in the current context"! Although I already have three resources files in the same project with the correct name and correct resource key! How can I use the resource file in the Visual web part without facing this error?
BTW, I checked this link but it doesn't help me to solve my issue?