Json and MVC

Hi,

I am trying to move over from web forms to MVC.
I have always used Json to post data to the server.

Should I continue to use Json or are people moving over to the controllers only to post data?

Thanks
LVL 1
SolugaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

guru_samiCommented:
The question is bit unclear. Can you elaborate more on your issue.

When you say post json, I take you are making an ajax call to some webservice correct? You can continue using that or now you have WebAPI as an option as well.
0
SolugaAuthor Commented:
Yes, I have used ajax calls to a WebMethod on the code behind in web forms.

I guess I am just wondering whether to pursue that design pattern as it is such an efficient method in moving data around.
0
guru_samiCommented:
Yes, if you are making ajax calls to WebMethods, then in that case your WebMethods in WebForms will translate to ActionMethod in MVC Controller. And your ajax path to WebMethod will be replaced by your controller/action route.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SolugaAuthor Commented:
Many Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.