Problem : Suppose I have the following: using(var ctx = DataContextFactory.Create(0)) { … Some code … } Why not just […]
Tag: asp.net
Is it possible to use ASP.NET application caching in web API?
Problem : For example, in a ASP.NET page you would do something like Cache.Add({…}) and access it via Cache[“key”]. In […]
Could not load file or assembly ‘System.Net.Http, Version=4.2.0.0, Culture=neutral on IIS [duplicate]
Problem : This question already has answers here: Strange issue with System.Net.Http 4.2.0.0 not found (24 answers) Closed 1 year […]
Web API as a Proxy and Chunked Transfer Encoding
Problem : I have been playing around with using Web API (Web Host) as a proxy server and have run […]
How to use Control.GetRouteUrl from a class in App_Code
Problem : I’m using routing in asp.net web forms 4.0 with some success. In my pages I am using Page.GetRouteURL […]
Receive (and send) XML via POST with ASP.NET
Problem : I have to set up an XML “web service” that receives a POST where the ‘Content-type header will […]
Why are my forms authentication tickets expiring so fast?
Problem : I’m using forms authentication in an ASP.NET application. I configure the FormsAuthenticationTicket to expire in 1 year but […]
Asp.NET not applying my CSS files
Problem : My site located in folder /website In browser it opens by url http://localhost:52912/website/ My Default page amd master […]
What is the best way to create a lock from a web application?
Problem : I’ve got a web application that re-sizes images. The re-sized images are written to disk in order to […]
Horizontal text alignment in a PdfPCell
Problem : I am using this code to align horizontally. cell = New PdfPCell(); p = New Phrase(“value”); cell.AddElement(p); cell.HorizontalAlignment […]