Google translator in asp.net c#
In this article, we can install google translator in
our web site or blog, many times we have doubt how to translate the content in
our language like Hindi, French, and English and so on.
Design:-
Source Code:-
<%@
Page Language="C#" AutoEventWireup="true" CodeFile="translator.aspx.cs" Inherits="translator"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div id="google_translate_element">
</div>
<script type="text/javascript">
function
googleTranslateElementInit() {
new
google.translate.TranslateElement({
pageLanguage: 'en'
}, 'google_translate_element');
}
</script>
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"
type="text/javascript"></script>
<fieldset style="width: 350px;">
<legend>Translator
</legend>Code Solution page refer to improve your code
skills.
you can also learn many theoretical
question they will be help in interview time.
</fieldset>
</form>
</body>
</html>
Out-Put:-
Note: - You can also create custom translator to click on below link
Google translator in asp.net c#
Reviewed by NEERAJ SRIVASTAVA
on
7:29:00 PM
Rating:
No comments: