sheryi26 Posted October 29, 2010 Share Posted October 29, 2010 Hi,I am working on a web application...it has ability of downloading mp3 files!it is working properly in localhost, but after uploading it on the web, it is not working and have the undefined error even after changing customErrors mode to "Off"!can anyone help me?<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />protected void Button1_Click(object sender, EventArgs e) { Response.Clear(); Response.ContentType = "audio/mpeg"; Response.AppendHeader("content-disposition", "attachment; filename=gigil.mp3"); Response.TransmitFile(Server.MapPath("test.mp3")); Response.End(); } Link to comment Share on other sites More sharing options...
justsomeguy Posted October 29, 2010 Share Posted October 29, 2010 What exactly are you seeing when you click? Link to comment Share on other sites More sharing options...
sheryi26 Posted October 31, 2010 Author Share Posted October 31, 2010 This is my test address!http://www.ravensburger.ir/download/Default.aspx Link to comment Share on other sites More sharing options...
justsomeguy Posted October 31, 2010 Share Posted October 31, 2010 Follow the instructions on that page carefully, if you're seeing that page then customErrors is not off (because if it was off, you wouldn't see that page). Link to comment Share on other sites More sharing options...
sheryi26 Posted November 1, 2010 Author Share Posted November 1, 2010 Thanks dear friend,I am trying a new hosting... maybe the problem related to this one!I will write about the error as soon as possible.Regards,Shery Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.