This is what I have tried
Page.Response.Clear();
Page.Response.ClearHeaders();
Page.Response.AddHeader("Content-disposition", "attachment; filename=" + "GraphExport.tsv");
Page.Response.AppendHeader("Content-type", "File/tsv");
Response.TransmitFile(FileName);
Response.End();
which is executed when a user clicks a download button. The code works fine. But my problem is this code seems to work perfectly if my application is an "asp.net web application" but not in "asp.net website".
Can some one point out what i am doing wrong and it would be great, if some one help me understand what is the diffrence between a web application and a website.