Response.ContentType = dr["projecttype"].ToString();
Response.AddHeader("Content-Disposition", "attachment;filename="+dr["filename"]+"");
Response.BinaryWrite((byte[])dr["size"]);
Response.End();
Can anybody explain these four steps clearly?
they are related to file downloading concept....
plzzzz its needed very quickly...
Can anybody explain these four steps clearly?
they are related to file downloading concept....
plzzzz its needed very quickly...

Iftikar HussainPosted Aug 6, 2013, 8:43 AM
Response.BinaryWrite - The BinaryWrite method writes the specified information to the current HTTP output without any character conversion. This method is useful for writing nonstring information, such as binary data required by a custom application.
Response.End - The End method causes the Web server to stop processing the script and return the current result. The remaining contents of the file are not processed.
Regards,
Iftikar
Sreekanth ReddyPosted Aug 6, 2013, 12:32 PM