response

Can I edit the response object on Ajax call?

I have a link button on my page clicking on which, I download a file from some DMS system and then send the file after zipping it on server to the client using response.write. But since the page is ajaxified, it throws an error. Is possible to send a file to the client on a Ajax call? I am using Telerik RadAjax. ...

Delay in the development server response in case of a postback,in asp.net website.

Hi everyone, I am working on an Asp.net webiste.The response time(in case of a postback) of the pages in the website is ok on my local machine.But when I uploaded the same website to the internal development server and tried to access the server pages from my local machine,its taking bit long(in case of a postback) as compared to my loca...

Prevent ASP.NET GET request timeout?

I've got an ASP.NET application that serves MP3 content, but that content is generated during the request and can delay the sending of the response's first byte by several minutes. The client is a podcatcher (I don't know which), and the lowest timeout I've seen is 20 seconds. That is, these clients are (reasonably enough) giving up re...

Send fodder bytes until actual response data is ready?

I need to serve MP3 content that is generated dynamically during the request. My clients (podcatchers I can't configure) are timing out before I'm able to generate the first byte of the response data. Is there a way to send fodder/throwAway data while I'm generating the real data, to prevent/avoid the timeout, but in a way that allows ...

ASP.net memory usage during download

On an ASP.net site at my place of work, the following chunk of code is responsible for handling file downloads (NOTE: Response.TransmitFile is not used here because the contents of the download are being streamed from a zip file): private void DownloadFile( Stream stream) { int bytesRead; int chunkSize = 1048576; //1MB ...

View PDF file within ASPX not acrobat

When a user clicks on a link, it opens a new window (since target="_blank") calls an xyz.ASPX page that will dynamically create an PDF invoice, saving it into a Database (not a physical location) and then I need to be able to open the PDF file within the ASPX page. Right now whats happening is that the aspx that generates the PDF file ...

ASP.NET response filtering and post-cache substitution are not compatible

According to this article http://support.microsoft.com/kb/2014472 you can't use Response filters and Substitution controls together. Has anyone found a workaround for this? I am trying to process complete HTML response just before it's written to client and I do use substitution controls widely. ...

How to parse SOAP response from ruby client?

Hi I am learning Ruby and I have written the following code to find out how to consume SOAP services: require 'soap/wsdlDriver' wsdl="http://www.abundanttech.com/webservices/deadoralive/deadoralive.wsdl" service=SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver weather=service.getTodaysBirthdays('1/26/2010') The response that I get...

php asynchronous call and getting response from the background job

Hello, I have done some google search on this topic and couldn't find the answer to my question. What I want to achieve is the following: the client make an asynchronous call to a function in the server the server runs that function in the background (because that function is time consuming), and the client is not hanging in the mean...

Can a flash client handle multipart http response

I have a server process that takes 15-80 seconds to complete that is currently being requested via XMLHttpRequest in the background with a progress bar displayed to the end user while the request waits for the response. I have modified the response to send back chunks of data as they are available so that the client can display the avai...

MVC last chance to change response before it is rendered to user

I need to change full html response stream (with html parsing) before it is rendered to user. Where/When is the last chance to do that? ...

download a file from server and then delete on server.

ok i am downloading a file from a server and i plan to delete the file that i have downloaded on the server after it gets downloaded on the client side.. My download code is working fine but i dont know when to put the command to delete the file. string filepath = restoredFilename.ToString(); // Create New instance of File...

after using Page.Response to send a file to user, page doesn't respond

I've created a page that allows users to download a file when they click a button... the button's onclick event is linked to the following chunk of code: this.Page.Response.Clear(); this.Page.Response.ContentType = System.Net.Mime.MediaTypeNames.Application.Zip; this.Page.Response.AppendHeader("Content-Disposition", "attachment; filenam...

Redirect to webapp default document when another page is specified?

IIS6, ASP.NET 2.0, No Forms Authentication I'm calling Response.Redirect("~/foo.aspx"), but the default document ("Default.aspx") for my site is appearing. To make matters worse, it only happens intermittently. Sometimes the redirect displays the right page. I've checked session state, and I don't see any values in the web.config (th...

How to use Server.Transfer or Response.Redirect from ajax UpdatePanel?

How to use Server.Transfer or Response.Redirect from ajax UpdatePanel? ...

How can my Django views know which template to render, or whether to return JSON?

Our site can be accessed from a full browser, from mobile browsers, and from a custom iPhone app. Since the logic is mostly the same regardless of the client, we're using the same views to process all types of requests. But at the bottom of every one of our views, we have something like: if request.is_mobile(): return render_to_resp...

What funny automatic-response do you know ?

(I don't know how this kind of fun questions are dealt with in here, but I hope it doesn't get deleted (since it's not a dupe, it IS a question, it is (fairly) programming related) just because it's not professional or really important) I've come across this image and I went to windows prompt and noticed that it didn't work anymore:( i...

BinaryWrite exception "OutputStream is not available when a custom TextWriter is used" in MVC 2 ASP.NET 4

Hi, I have a view rendering a stream using the response BinaryWrite method. This all worked fine under ASP.NET 4 using the Beta 2 but throws this exception in the RC release: "HttpException" , "OutputStream is not available when a custom TextWriter is used." <%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPa...

ASP.NET/C#: Bundling Sets of Files, Zipping Them Up, and Sending Back to User thru Response

Let's say that I have a website where I'd like users to be able to download a certain group of files. There will be checkboxes and listboxes of options for users to choose from, so that they can select what parts they want to include and what they don't want to download. Then, they click the Download button and their browser downloads a ...

Calling Response.TransmitFile() from static method

I have a number of pages which need to support exporting data to an Excel spreadsheet. I can generate the Excel files just fine, but I'm trying to work out how to abstract this behavior so it's easily reusable from all of the pages where I need it. My current idea is to use a static utility method, as follows: public static void SendEx...