Home >Web Front-end >JS Tutorial >Summary of several return methods for calling HttpHanlder_jquery
1: If you only need to return string form, such as content, JSON string array, etc.
context.Response.Write(resultPrice.ToString());
2: If you want to return the image, use the form of stream
bitmap.Save(context.Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
3: If a file is returned, such as a txt document, it is provided to the client for download
context.Response.WriteFile("Text instance.txt");