I have a resource file in the App_GlobalResources folder and i would like to print some of the string in things like the alt text of images and the title of a href links. I know this can be done using asp.net controls for asp:Image and asp:Hyperlink then
print the striong with the <%$ but what I would like to do is use the normal HTML a href and img tags and then print the resource string in that. Can anyone tell me how to accomplish that?
Eagle_f90
Member
465 Points
532 Posts
Printing a string from a resource file out of an asp control
Jan 13, 2013 12:13 AM|LINK
I have a resource file in the App_GlobalResources folder and i would like to print some of the string in things like the alt text of images and the title of a href links. I know this can be done using asp.net controls for asp:Image and asp:Hyperlink then print the striong with the <%$ but what I would like to do is use the normal HTML a href and img tags and then print the resource string in that. Can anyone tell me how to accomplish that?
cichanlx
Member
6 Points
10 Posts
Re: Printing a string from a resource file out of an asp control
Feb 13, 2013 07:10 PM|LINK
You are familiar with "Web Server Controls". What you are now asking about is "HTML Server Controls", which are HTML elements with a runat="server".
http://msdn.microsoft.com/en-us/library/zsyt68f1(v=VS.100).aspx