¡@

Home 

c# Programming Glossary: httpmodule

REST WCF service locks thread when called using AJAX in an ASP.Net site

http://stackoverflow.com/questions/11250109/rest-wcf-service-locks-thread-when-called-using-ajax-in-an-asp-net-site

Then in order to control the cookie handling I created an HttpModule using System using System.Web namespace RestService public class.. namespace RestService public class TestPreventCookie IHttpModule public void Dispose public void Init HttpApplication application.. is that when the calls to the service are coming in the HttpModule inspects the URL and when necessary removes the ASP.NET_SessionId..

IRequiresSessionState - how do I use it?

http://stackoverflow.com/questions/1375627/irequiressessionstate-how-do-i-use-it

handler MSDN will tell you a lot about HttpHandlers and HttpModules. In my case I needed a dummy handler so that I could access.. get return false Here is a reference to a very elegant HttpModule class from which I got much or what I used. I hope this helps..

Mock static property with moq

http://stackoverflow.com/questions/2416362/mock-static-property-with-moq

new to use moq . I am into creating some unit test case to HttpModule and everything works fine until I hit a static property as follows..

Display custom error page when file upload exceeds allowed size in ASP.NET MVC

http://stackoverflow.com/questions/2759193/display-custom-error-page-when-file-upload-exceeds-allowed-size-in-asp-net-mvc

is thrown IIS7 kills the connection immediately. So an HttpModule that redirects on this error will only work if the HttpException..

Programatically logout an ASP.NET user

http://stackoverflow.com/questions/3098724/programatically-logout-an-asp-net-user

been disabled then signout. You could achieve this using a HttpModule too which would make things a bit cleaner. For example public.. a bit cleaner. For example public class UserCheckModule IHttpModule public void Init HttpApplication context context.PreRequestHandlerExecute..

Compressing web service request

http://stackoverflow.com/questions/370156/compressing-web-service-request

begins and after it ends. They work a lot like an HttpModule but can be included on the client request side as well. http..