Last post Jan 15, 2007 04:14 AM by vivek_iit
Jan 13, 2007 03:22 PM|Peter Fehrman|LINK
I have a layoutarhive on my webpage. And when some visitor wants to download a layout, he or she presses the "Download"-button, and then this shit happends:
Object Moved To Here, on a empty page. Nothing happends, just this text is showing, and the adresfield i my webbrowser is the same as when i clicked the "Download"-button. So it doesn't change either. And no download is starting.
I don't know how i am supposed to do. But here you have some code:
using (MySqlConnection connection = new MySqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString))
using (MySqlCommand command = new MySqlCommand("SELECT _Path FROM Layouts WHERE _Id=?Id", connection))
command.Parameters.Add("?Id", MySqlDbType.Int32).Value = int.Parse(e.CommandArgument.ToString());
Response.Redirect(Server.MapPath("../" + (string)command.ExecuteScalar()));
And the download-links looks like following:
<asp:LinkButton ID="lnkbtnDownloadLayout" CommandName="lnkbtnDownloadLayout" CommandArgument='<%#Eval("_Id")
Jan 13, 2007 06:14 PM|vivek_iit|LINK
Generally this is fixed by simply updating the system, check this link:
Jan 13, 2007 06:26 PM|e_screw|LINK
No sure though, if the above code makes a recursive call to the Response.Redirect, "Object moved here" occurs or browsers interpret that way, when there was a recursive call to the Response.Redirect or use with endResponse parameter set to false. Haven't
seen this error lately, but sure you got a fix for it in .NET 1.x here
Jan 14, 2007 10:59 PM|Peter Fehrman|LINK
I'm using ASP.NET 2.0
And neither of yours tries is working.
Jan 15, 2007 04:14 AM|vivek_iit|LINK
Try these links:
http://www.checkupdown.com/status/E302.html Debug and see what the URL actually is. Make sure it is a valid URL.
If the above does not help, try: