Hi ThinkGeo,
I am starting to integrate Map Suite with an MVC project. Do have any tips, tricks or a sample project you could pass along?
Thanks,
Justin
Hi ThinkGeo,
I am starting to integrate Map Suite with an MVC project. Do have any tips, tricks or a sample project you could pass along?
Thanks,
Justin
Justin,
We tested Map Suite Web Edition 3.0 in MVC.net, it works fine. In my opinion, it just utilizes some existing technology of Page, MasterPage and UserControls. It split your application to three layers. It’s structure is different from Normal Web page, it won’t go through whole Web Page’s life circle etc.
Currently, I cannot give any tips and tricks, because it’s just another structure to develop web application, just like someone likes JavaScript, someone likes write server code.
The only thing I need to point out is the public method in a controller is exposed as an action. If someone enters the right url in the IE to access your action, your public method will be invoke. Just in case.
Hope sharing your experience, and thank you.
Howard
Sorry - I must have phrased my question wrong - I am looking for anything you have on integrating Map Suite Web with an MVC project - not tips and tricks on MVC projects themselves (I am quite versed in that)!
Sorry for the confusion.
Basically I have dropped a Map Control on my form and the map doesn’t load and I am getting a JavaScript error. In addition, the component has added Viewstate to the form, and so on…
So - I think my original question should have been - do you have an MVC Project with Map Suite running in it that you can share?
Thanks,
Justin
Justin,
I recommend you to see this article before starting your project. It may give you some advices of developing in MVC framework.
jeffreypalermo.com/blog/you-...et-mvc-if/
Okay, I do have an old sample working in the MVC; but actually I just put our control in an user control which can raise server event. But you know the MVC has lots of related files, when I pack it up, its size is too big to post on the forum. If you are interesting in it, please ask support@thinkgeo.com for this sample.
Any questions please let me know.
Thanks,
Howard