how to do that ?
How to use google translator in website?
hello.. i want that whole webpage should be translated to selected language from dropdown like google translator..
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Jitendra Tiwari33 reputationPosted Mar 28, 2010, 9:51 AM EDT
you read asp.net localization to translate your site in any language.
try this code
Default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
Default.aspx.cs
using System;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
void Page_PreRender()
{
lblDate.Text = DateTime.Now.ToString("D");
}
protected void btnSelect_Click(object sender, EventArgs e)
{
Culture = DropDownList1.SelectedValue;
}
}
I thinks this help u
Please mark answer if help u!!!!!!!!!!
thanks.