ASP. NET Web Api

Source: Internet
Author: User

1. References

Routing in ASP Web API:

Http://www.asp.net/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api

Http://www.asp.net/web-api/overview/web-api-routing-and-actions/routing-and-action-selection

Return Json Format

Http://www.cnblogs.com/jiguixin/p/3230645.html

Passing parameters to the Web Api

Http://www.cnblogs.com/Juvy/p/3903974.html

Http://www.tuicool.com/articles/fuIjeaf

Http://www.cnblogs.com/smiler/p/3144018.html

Http Cookies in ASP Web API

Http://www.asp.net/web-api/overview/advanced/http-cookies

2. Web API to turn on Sessioin function

Global.asax.cs Adding content

     Public classWebApiApplication:System.Web.HttpApplication {protected voidApplication_Start () {arearegistration.registerallareas ();            Globalconfiguration.configure (Webapiconfig.register);            Filterconfig.registerglobalfilters (globalfilters.filters);            Routeconfig.registerroutes (routetable.routes);            Bundleconfig.registerbundles (Bundletable.bundles);        GlobalConfiguration.Configuration.Formatters.XmlFormatter.SupportedMediaTypes.Clear (); }        /// <summary>        ///overriding the Init method and setting the session behavior type/// </summary>         Public Override voidInit () { This. Postauthenticaterequest + = (sender, e) = =HttpContext.Current.SetSessionStateBehavior (sessionstatebehavior.required); Base.        Init (); }    }

ASP. NET Web Api

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.