I am new to MVC. I like to have all C# codes in Controller rather views.
The reason is that I have a lot of initialization work to load layers/styles/… A lot of things need to read info from database.
Is there an example of such?
Thanks,
Guangming
MVC example to create map directly in controller
figured it out: just need to add
Html.ThinkGeo().Map(Model).Render();
to the view page with @model ThinkGeo.MapSuite.MvcEdition.Map
Hi Guangming,
Great to hear it is sorted out, if you have any more question, please feel free to let us know.
Best Regards
Summer
I feel that demo or the help document on MVC misses a critical part on why these parts are needed. The demo definitely is not up to date, as the resulting project won’t work.
Hi Guangming,
Our MVC Edition supported MVC3.0 but not MVC4.0, so, I think that you will create MVC3 project.
Regards,
Don