How to show the return value from GetLocalResource to the asp.net label control ("popUpBody")?
I tested by using response.write. it is working.
protected string GetLocalResource(string key)
{
string shareLocalResourceFile = DotNetNuke.Common.Globals.ResolveUrl("~/DesktopModules/Admin/ModuleName/App_LocalResources/Default.ascx.resx");
return DotNetNuke.Services.Localization.Localization.GetString(key, shareLocalResourceFile).ToString();
}
<%
//Response.Write(GetLocalResource("popUpBody.Text"));
%>
<asp:Label runat="server" ID="popUpBody" Text="" ></asp:Label>