1:如果只需要返回字符串形式的 例如內(nèi)容、JSON字符串?dāng)?shù)組等
context.Response.Write(resultPrice.ToString());
2:如要要返回圖片,那么采用流的形式
bitmap.Save(context.Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
3:如果返回文件,例如txt文檔提供給客戶端下載
context.Response.WriteFile("文本實(shí)例.txt");
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注