<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ArcGIS JavaScript API and Razor View (cshtml) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-api-and-razor-view-cshtml/m-p/427709#M39321</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to use ArcGIS API for JavaScript in ASP.Net MVC4's Razor View?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to develop a mobile friendly web application with arcgis maps javascript viewer. ASP.Net MVC4 has some &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.hanselman.com/blog/CreateAGreatMobileExperienceForYourWebsiteTodayPlease.aspx" rel="nofollow" target="_blank"&gt;great mobile support features&lt;/A&gt;&lt;SPAN&gt; with its Razor view engine. Is it possible to integrate ArcGIS maps in cshtml pages? If so, please provide some sample code or references for that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2012 07:10:19 GMT</pubDate>
    <dc:creator>VasudevanPeriasamy</dc:creator>
    <dc:date>2012-09-24T07:10:19Z</dc:date>
    <item>
      <title>ArcGIS JavaScript API and Razor View (cshtml)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-api-and-razor-view-cshtml/m-p/427709#M39321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to use ArcGIS API for JavaScript in ASP.Net MVC4's Razor View?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to develop a mobile friendly web application with arcgis maps javascript viewer. ASP.Net MVC4 has some &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.hanselman.com/blog/CreateAGreatMobileExperienceForYourWebsiteTodayPlease.aspx" rel="nofollow" target="_blank"&gt;great mobile support features&lt;/A&gt;&lt;SPAN&gt; with its Razor view engine. Is it possible to integrate ArcGIS maps in cshtml pages? If so, please provide some sample code or references for that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 07:10:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-api-and-razor-view-cshtml/m-p/427709#M39321</guid>
      <dc:creator>VasudevanPeriasamy</dc:creator>
      <dc:date>2012-09-24T07:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JavaScript API and Razor View (cshtml)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-api-and-razor-view-cshtml/m-p/427710#M39322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is it possible to use ArcGIS API for JavaScript in ASP.Net MVC4's Razor View?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am trying to develop a mobile friendly web application with arcgis maps javascript viewer. ASP.Net MVC4 has some &lt;A class="jive-link-external-small" href="http://www.hanselman.com/blog/CreateAGreatMobileExperienceForYourWebsiteTodayPlease.aspx" rel="nofollow" target="_blank"&gt;great mobile support features&lt;/A&gt; with its Razor view engine.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Which features are you hoping to use?&amp;nbsp; Nothing in that article needs Razor to achieve it, Razor just happens to be ASP.NET's default scripting language these days so all MS examples tend to be written using it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Is it possible to integrate ArcGIS maps in cshtml pages?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes.&amp;nbsp; The JS API is a client-side technology so it doesn't matter which server-side technology you use to emit the page content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If so, please provide some sample code or references for that.&lt;BR /&gt;Thanks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it'd be more beneficial to learn what Razor actually is and what it does then you'll see that you don't need any Razor-specific examples for the JS API &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 07:35:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-api-and-razor-view-cshtml/m-p/427710#M39322</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-09-24T07:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JavaScript API and Razor View (cshtml)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-api-and-razor-view-cshtml/m-p/427711#M39323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is it possible to use ArcGIS API for JavaScript in ASP.Net MVC4's Razor View?&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you found how to do this, please let me know. So far, I have only found ways to post back to a MVC controller using jQuery.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;From there, you can return a json action response. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think you can use any of MVC Razor markup directly in DIVs made up of DOM injected text. This is the model for for the Javascript API to avoid postbacks. Almost all the map interaction is done with DOM injection that is rather easy to do using jQuery. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Forget using any Dojo that you don't have to. It is garbage.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone wants to see how I interact with MVC controllers to get back a json object, just ask.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 19:18:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-api-and-razor-view-cshtml/m-p/427711#M39323</guid>
      <dc:creator>DanRandolph</dc:creator>
      <dc:date>2012-11-09T19:18:17Z</dc:date>
    </item>
  </channel>
</rss>

