Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 386 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
JScript runtime error when downloading file from server

#1
I currently have a button on my aspx, when it is clicked, it calls a method to download a jpeg file from a server. The Jpeg file is a chart created with Infragistic.

My current Download method is this:

private void DownLoad(string pImagen)
{

Context.Response.ClearContent();
Context.Response.Clear();
Context.Response.ContentType = "application/jpeg";
Context.Response.AddHeader("Content-Disposition", "attachment; filename =" + pImagen);
Context.Response.Flush();
Context.Response.TransmitFile(ConfigurationManager.AppSettings["UploadPath"] + pImagen);
Context.Response.End();
}

But after the method is executed, a JSruntime error pops up:

Microsoft JScript runtime error: System error: -1072896748.


The error is located in a file called "ig_shared.js" in this method:

this._doResponse = function(cb)
{
var request = cb.request;
if(!request || request.readyState != 4)
return false;
var txt = request.responseText, sep = this._sep, sepLen = this._sepLen;


When i debug, Visual Studio shows a message that says "The name 'Request' does not exist in the current context" in this code line:

var txt = request.responseText

Maybe I'm missing something, but i have no idea what could be wrong.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through