For some reason, i have to make a aspx page to let iphone/android to Post form.
After the data processing of request.form , i have response a JSON string in plain text.
However *.aspx will enforce to render html,head,body tag,so how can i disable it?
I cannot use ashx, because the mobile have to post image via form, as i search the answer by google ,ashx cannot handle the http post files.
Edit:
As SLaks said, ashx can handle POST file using “context.Request.Files” and it works.
You are wrong.
ASHX files can handle HTTP POSTs.
To answer the question, you can delete all of the content in the ASPX file. ASPX files do not need to have any content at all (other than the
<%@ Page %>directive)