1
Answer

how to resource file to globalize li menu and dropdownlist?

how to write in resource to globalize li menu and dropdownlist to make multilanguage website in asp.net?
This is the masterpage
<html>
<head runat="server">
<link href="StyleSheet1.css" rel="stylesheet" />
<title></title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<div class="wrapper">

</div>

<div class="beauty">
<ul>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<% if (Session["user"] == null)
{ %>
<li><a href="lenderlogin.aspx">Banks and Lenders</a></li>
<% }
%>
<% if (Session["user"] == null)
{ %>
<li><a href="login.aspx">Login/Register</a></li>
<% }
%>
<% if (Session["user"] == null)
{ %>
<li><a href="agentlogin.aspx">Agents and Cyber Cafes</a></li>
<% }

%>
<asp:DropDownList ID="ddlLanguages" runat="server" AutoPostBack="True">
<asp:ListItem Value="En">English</asp:ListItem>
<asp:ListItem Value="fr">French</asp:ListItem>
</asp:DropDownList>
</ul>
</div>
<div id="nav2">
<ul>
<li><a href="home.aspx">Home</a></li>
<li><a href="Buy.aspx">Buy</a></li>
<li><a href="Rent.aspx">Rent</a></li>
<li><a href="Estimate.aspx">Estimate</a></li>
<% if (Session["user"] == null)
{ %>
<li><a href="login.aspx">Sell</a></li>
<% }
else
{ %>
<li><a href="sellerSell.aspx">Sell</a></li>
<%} %>
<% if (Session["user"] == null)
{ %>
<li><a href="login.aspx">Rent Out</a></li>
<% }
else
{ %>
<li><a href="SellerRentOut.aspx">Rent Out</a></li>
<%} %>


<li><a href="Help.aspx">Help</a></li>
<% if (Session["user"] == null)
{ %>
<li><a href="login.aspx"></a></li>
<% }
else
{ %>
<li><a href="manage.aspx">manage</a></li>
<%} %>


</ul>
</div>


<div class="main">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"></asp:ContentPlaceHolder>

</div>

<div class="footer"></div>

</form>
</body>
</html>

how could i write in the resource file?
and in a child page

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Panel ID="Panel1" runat="server" style="margin-bottom: 5px">
<asp:DropDownList ID="DropDownList3" runat="server">
<asp:ListItem>Select country</asp:ListItem>
</asp:DropDownList><asp:DropDownList ID="DropDownList1" runat="server" Height="32px" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
<asp:ListItem>Select the Category</asp:ListItem>
<asp:ListItem>Villa</asp:ListItem>
<asp:ListItem>Apartment and Condos</asp:ListItem>
<asp:ListItem>Farm</asp:ListItem>
<asp:ListItem>Office</asp:ListItem>
<asp:ListItem>Store</asp:ListItem>
<asp:ListItem>Storey House</asp:ListItem>
<asp:ListItem>Plot</asp:ListItem>
<asp:ListItem>Shop</asp:ListItem>
<asp:ListItem>Other commercial</asp:ListItem>
</asp:DropDownList>
<asp:TextBox ID="TextBox1" runat="server" Height="27px" Width="414px">Write name of a product or name of a place</asp:TextBox> <asp:DropDownList ID="DropDownList2" runat="server">
<asp:ListItem>Select Market</asp:ListItem>
<asp:ListItem>Fixed buy </asp:ListItem>
<asp:ListItem>Mortgaged</asp:ListItem>
<asp:ListItem>Auction</asp:ListItem>
<asp:ListItem>Rent</asp:ListItem>
</asp:DropDownList>

<asp:Button ID="Button1" runat="server" Height="36px" Text="Search" Width="79px" />
</asp:Panel>

</asp:Content>

how to write in resource file and any extra any help would be appreciable
Answers (1)