{"id":6978,"date":"2012-12-28T12:46:00","date_gmt":"2012-12-28T20:46:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/translation\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/"},"modified":"2019-08-06T11:01:32","modified_gmt":"2019-08-06T18:01:32","slug":"building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api","status":"publish","type":"post","link":"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/","title":{"rendered":"Building an ASP.NET Web App with the Microsoft Translator Widget and API"},"content":{"rendered":"<p><em><strong>Note:\u00a0<\/strong>The Translator Web Widget was retired on July 31, 2019. Learn how you can translate your website with Microsoft Translator on the <a href=\"https:\/\/www.microsoft.com\/translator\/business\/web\/\">Microsoft Translator business site<\/a>.<\/em><\/p>\n<p>Microsoft Translator offers&nbsp;great tools for web developers. With the <a href=\"http:\/\/www.microsofttranslator.com\/widget\/\">Microsoft Translator Widget<\/a>&nbsp;you can add translation to all of the content of your site, giving the user control over what language they read your site in.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/msdnshared.blob.core.windows.net\/media\/MSDNBlogsFS\/prod.evol.blogs.msdn.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/91\/16\/metablogapi\/8103.clip_image014_610F89D0.png\" alt=\"\" \/>&nbsp;<\/p>\n<p>With the <a href=\"https:\/\/datamarket.azure.com\/dataset\/1899a118-d202-492c-aa16-ba21c33c06cb\">Microsoft Translator API<\/a>&nbsp;you can get access to our service allowing you to translate any user generated or other text. In this walkthrough you&rsquo;ll learn how to use both of these, adding a widget to the master page of an <a href=\"http:\/\/www.asp.net\/downloads\">ASP.NET site<\/a>, as well as how to sign up for the translator API and use it in your ASP.NET code.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/msdnshared.blob.core.windows.net\/media\/MSDNBlogsFS\/prod.evol.blogs.msdn.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/91\/16\/metablogapi\/2161.clip_image001_6621ED4C.png\" alt=\"\" \/><\/p>\n<p>The walkthrough takes you through everything you need to know, including where and how to get the free Visual Studio tools for web developers, signing up for the API, generating a widget and writing the code that you need to access the API.&nbsp;&nbsp;<\/p>\n<p>You can read the complete walk through here: <a href=\"http:\/\/blogs.msdn.com\/b\/translation\/p\/webapptranslator.aspx\">http:\/\/blogs.msdn.com\/b\/translation\/p\/webapptranslator.aspx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Note:\u00a0The Translator Web Widget was retired on July 31, 2019. Learn how you can translate your website with Microsoft Translator on the Microsoft Translator business site. Microsoft Translator offers&nbsp;great tools for web developers. With the Microsoft Translator Widget&nbsp;you can add translation to all of the content of your site, giving the user control over what language they read your site<span class=\"read-more-ellipsis\">&#8230;.<\/span><\/p>\n <p class=\"c-paragraph-3 read-more-link\"><a class=\"c-call-to-action c-glyph f-lightweight\" href=\"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/\">CONTINUE READING <span class=\"x-screen-reader\">\"Building an ASP.NET Web App with the Microsoft Translator Widget and API\"<\/span><\/a><\/p>","protected":false},"author":54,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[28,25,9,10],"class_list":["post-6978","post","type-post","status-publish","format-standard","hentry","category-developers","tag-api","tag-build-your-own","tag-development","tag-microsoft-translator"],"acf":[],"yoast_head":"<title>Building an ASP.NET Web App with the Microsoft Translator Widget and API - Microsoft Translator Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Building an ASP.NET Web App with the Microsoft Translator Widget and API - Microsoft Translator Blog\" \/>\n<meta property=\"og:description\" content=\"Note:\u00a0The Translator Web Widget was retired on July 31, 2019. Learn how you can translate your website with Microsoft Translator on the Microsoft Translator business site. Microsoft Translator offers&nbsp;great tools for web developers. With the Microsoft Translator Widget&nbsp;you can add translation to all of the content of your site, giving the user control over what language they read your site....\" \/>\n<meta property=\"og:url\" content=\"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/\" \/>\n<meta property=\"og:site_name\" content=\"Microsoft Translator Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/microsofttranslator\" \/>\n<meta property=\"article:published_time\" content=\"2012-12-28T20:46:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-08-06T18:01:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/msdnshared.blob.core.windows.net\/media\/MSDNBlogsFS\/prod.evol.blogs.msdn.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/91\/16\/metablogapi\/8103.clip_image014_610F89D0.png\" \/>\n<meta name=\"author\" content=\"Microsoft Translator\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@mstranslator\" \/>\n<meta name=\"twitter:site\" content=\"@mstranslator\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Microsoft Translator\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/#article\",\"isPartOf\":{\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/\"},\"author\":{\"name\":\"Microsoft Translator\",\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/person\/0a163e1bf796b3bb651085032849cf37\"},\"headline\":\"Building an ASP.NET Web App with the Microsoft Translator Widget and API\",\"datePublished\":\"2012-12-28T20:46:00+00:00\",\"dateModified\":\"2019-08-06T18:01:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/\"},\"wordCount\":207,\"publisher\":{\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#organization\"},\"keywords\":[\"API\",\"Build your own\",\"Development\",\"Microsoft Translator\"],\"articleSection\":[\"Developers\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/\",\"url\":\"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/\",\"name\":\"Building an ASP.NET Web App with the Microsoft Translator Widget and API - Microsoft Translator Blog\",\"isPartOf\":{\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#website\"},\"datePublished\":\"2012-12-28T20:46:00+00:00\",\"dateModified\":\"2019-08-06T18:01:32+00:00\",\"breadcrumb\":{\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https://www.microsoft.com\/en-us\/translator/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Building an ASP.NET Web App with the Microsoft Translator Widget and API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#website\",\"url\":\"https://www.microsoft.com\/en-us\/translator/blog\/\",\"name\":\"Microsoft Translator Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https://www.microsoft.com\/en-us\/translator/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#organization\",\"name\":\"Microsoft Corporation\",\"url\":\"https://www.microsoft.com\/en-us\/translator/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/logo\/image\/\",\"url\":\"https://www.microsoft.com\/en-us\/translator/blog\/wp-content\/uploads\/sites\/13\/2021\/05\/microsoft_logo_element-300x300-1.png\",\"contentUrl\":\"https://www.microsoft.com\/en-us\/translator/blog\/wp-content\/uploads\/sites\/13\/2021\/05\/microsoft_logo_element-300x300-1.png\",\"width\":300,\"height\":300,\"caption\":\"Microsoft Corporation\"},\"image\":{\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.youtube.com\/playlist?list=PLD7HFcN7LXRd4kd2XgZjIbQ8TwTC32Zc9\",\"https:\/\/www.facebook.com\/microsofttranslator\",\"https:\/\/twitter.com\/mstranslator\"]},{\"@type\":\"Person\",\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/person\/0a163e1bf796b3bb651085032849cf37\",\"name\":\"Microsoft Translator\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d22a72f3ca14b9d59f8bcdc837a51c6bf52b4a675c30ef18a9275753db5eda6c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d22a72f3ca14b9d59f8bcdc837a51c6bf52b4a675c30ef18a9275753db5eda6c?s=96&d=mm&r=g\",\"caption\":\"Microsoft Translator\"},\"url\":\"https://www.microsoft.com\/en-us\/translator/blog\/author\/mtteam\/\"}]}<\/script>","yoast_head_json":{"title":"Building an ASP.NET Web App with the Microsoft Translator Widget and API - Microsoft Translator Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/","og_locale":"en_US","og_type":"article","og_title":"Building an ASP.NET Web App with the Microsoft Translator Widget and API - Microsoft Translator Blog","og_description":"Note:\u00a0The Translator Web Widget was retired on July 31, 2019. Learn how you can translate your website with Microsoft Translator on the Microsoft Translator business site. Microsoft Translator offers&nbsp;great tools for web developers. With the Microsoft Translator Widget&nbsp;you can add translation to all of the content of your site, giving the user control over what language they read your site....","og_url":"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/","og_site_name":"Microsoft Translator Blog","article_publisher":"https:\/\/www.facebook.com\/microsofttranslator","article_published_time":"2012-12-28T20:46:00+00:00","article_modified_time":"2019-08-06T18:01:32+00:00","og_image":[{"url":"https:\/\/msdnshared.blob.core.windows.net\/media\/MSDNBlogsFS\/prod.evol.blogs.msdn.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/91\/16\/metablogapi\/8103.clip_image014_610F89D0.png"}],"author":"Microsoft Translator","twitter_card":"summary_large_image","twitter_creator":"@mstranslator","twitter_site":"@mstranslator","twitter_misc":{"Written by":"Microsoft Translator","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/#article","isPartOf":{"@id":"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/"},"author":{"name":"Microsoft Translator","@id":"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/person\/0a163e1bf796b3bb651085032849cf37"},"headline":"Building an ASP.NET Web App with the Microsoft Translator Widget and API","datePublished":"2012-12-28T20:46:00+00:00","dateModified":"2019-08-06T18:01:32+00:00","mainEntityOfPage":{"@id":"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/"},"wordCount":207,"publisher":{"@id":"https://www.microsoft.com\/en-us\/translator/blog\/#organization"},"keywords":["API","Build your own","Development","Microsoft Translator"],"articleSection":["Developers"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/","url":"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/","name":"Building an ASP.NET Web App with the Microsoft Translator Widget and API - Microsoft Translator Blog","isPartOf":{"@id":"https://www.microsoft.com\/en-us\/translator/blog\/#website"},"datePublished":"2012-12-28T20:46:00+00:00","dateModified":"2019-08-06T18:01:32+00:00","breadcrumb":{"@id":"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/"]}]},{"@type":"BreadcrumbList","@id":"https://www.microsoft.com\/en-us\/translator/blog\/2012\/12\/28\/building-an-asp-net-web-app-with-the-microsoft-translator-widget-and-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.microsoft.com\/en-us\/translator/blog\/"},{"@type":"ListItem","position":2,"name":"Building an ASP.NET Web App with the Microsoft Translator Widget and API"}]},{"@type":"WebSite","@id":"https://www.microsoft.com\/en-us\/translator/blog\/#website","url":"https://www.microsoft.com\/en-us\/translator/blog\/","name":"Microsoft Translator Blog","description":"","publisher":{"@id":"https://www.microsoft.com\/en-us\/translator/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://www.microsoft.com\/en-us\/translator/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https://www.microsoft.com\/en-us\/translator/blog\/#organization","name":"Microsoft Corporation","url":"https://www.microsoft.com\/en-us\/translator/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/logo\/image\/","url":"https://www.microsoft.com\/en-us\/translator/blog\/wp-content\/uploads\/sites\/13\/2021\/05\/microsoft_logo_element-300x300-1.png","contentUrl":"https://www.microsoft.com\/en-us\/translator/blog\/wp-content\/uploads\/sites\/13\/2021\/05\/microsoft_logo_element-300x300-1.png","width":300,"height":300,"caption":"Microsoft Corporation"},"image":{"@id":"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.youtube.com\/playlist?list=PLD7HFcN7LXRd4kd2XgZjIbQ8TwTC32Zc9","https:\/\/www.facebook.com\/microsofttranslator","https:\/\/twitter.com\/mstranslator"]},{"@type":"Person","@id":"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/person\/0a163e1bf796b3bb651085032849cf37","name":"Microsoft Translator","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d22a72f3ca14b9d59f8bcdc837a51c6bf52b4a675c30ef18a9275753db5eda6c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d22a72f3ca14b9d59f8bcdc837a51c6bf52b4a675c30ef18a9275753db5eda6c?s=96&d=mm&r=g","caption":"Microsoft Translator"},"url":"https://www.microsoft.com\/en-us\/translator/blog\/author\/mtteam\/"}]}},"_links":{"self":[{"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/posts\/6978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/users\/54"}],"replies":[{"embeddable":true,"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/comments?post=6978"}],"version-history":[{"count":1,"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/posts\/6978\/revisions"}],"predecessor-version":[{"id":8736,"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/posts\/6978\/revisions\/8736"}],"wp:attachment":[{"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/media?parent=6978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/categories?post=6978"},{"taxonomy":"post_tag","embeddable":true,"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/tags?post=6978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}