PDA

View Full Version : ASP.NET MVC serving Data to Sencha Touch to consume



fgeorge
7 Dec 2010, 9:42 AM
Hello,
Does anyone have experience using MVC to serve JSON Data to Sencha Toch to consume?

What form will the URL in the index.js file take?

Thanks

profunctional
10 Dec 2010, 9:23 AM
If you are using ASP.NET MVC, you'll need to set a var for the URL in the Index.aspx file. This is the same file that acts as your View page which has the index.js include.

Check out Step 2. in this tutorial.

[snip]

This lets you generate the URL dynamically using the helper classes.