Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multilingual web application change div text?

I am working with asp.net web application multilingual site.

I am using following link :

http://techaxe.com/2010/09/04/creating-multilingual-website-using-asp-net/

Here we have file in my App_LocalResource folder for change text content. It's work good with label control.

<asp:Label ID="Label1" runat="server" Text="<%$Resources:AboutText%>"></asp:Label>

Here I want to change my div content as per selected language.

<div class="registration_content" runat="server">
                    <%$Resources:AboutText%> </div>

Please suggest me how I can change div content as per local resource variable.

Thanks for any suggestion..

like image 744
Yashwant Kumar Sahu Avatar asked Jun 29 '12 10:06

Yashwant Kumar Sahu


1 Answers

You could use an asp:Literal tag:

<div class="registration_content" runat="server">
    <asp:Literal runat="server" Text="<%$Resources:AboutText%>" /> 
</div>
like image 196
Andy Avatar answered Sep 19 '22 19:09

Andy