Click here to Skip to main content
15,867,834 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm trying to call httphandler in SharePoint usercontrol . I'm loading this usercontrol in a SharePoint web part. This httphandler is deployed to SharePoint layouts folder.

Below is my code . this.Page.Form.Action = "/_layouts/handler/FileHandler.ashx"; this.Page.Form.Method = "POST"; this.Page.Form.Enctype = "multipart/form-data";

On page load or button click event , my handler is called but context.Request.HttpMethod is always "GET" instead of "POST . It works fine in chrome but it is very inconsistent. But in explorer and chrome, it is always get method. I'm not sure where im going wrong . PLease guide me how can i make httprequest to be POST.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900