Questions tagged [response.write]

142 questions
2
votes
3 answers

Connection lost with response.end in node.js

I'm using node.js to have multiple clients. Now, in my code, I'm listening on a port and each time a client connects, I want to send out a broadcast message to all other clients, say. I'm raising a new event each time some new client connects, and…
wittythotha
  • 3,586
  • 4
  • 17
  • 18
2
votes
1 answer

Style attribute not appearing

I am displaying an image within each itme of a ListView. I want the image to be centered horizontally as well as vertically in a box. My code is as follows: Protected Sub MembersLV_ItemDataBound(ByVal sender As Object, ByVal e As…
Leah
  • 2,441
  • 5
  • 21
  • 28
2
votes
2 answers

ASP.net shorthand in TextBox

I am trying to do the following: When I execute my page it gets output as <%= Name %> instead of actually doing a response.write. I tried modifying it to use the <% Response.Write(Name)…
Dismissile
  • 30,816
  • 34
  • 167
  • 253
2
votes
1 answer

Show Response.Binarywrite in browser save dialog or open new window and close after save

My problem looks like this. I have a grid with documents (Id's). Now when somebody clicks at a row I would like to allow him to download or show that document. But to make it esier let's say that I would do this on a button click. I tried two…
shin
  • 656
  • 2
  • 9
  • 25
2
votes
2 answers

Is Response.End() mandatory in the given scenario?

string filePath = ExportAndSaveInvoiceAsHtml(invoiceId); Response.AddHeader("Content-Disposition", "attachment;filename=" + Path.GetFileName(filePath)); Response.WriteFile(filePath); // Using Response.End() solves the problem //…
Munish Goyal
  • 1,339
  • 4
  • 26
  • 48
2
votes
1 answer

Wrong encoding by response.write

I have a string in a web application The string is like this : `1234567890-=[]\ ;',./\~!@#$%^&*()_+{}|:"<>?| after encoding (by using Server.Encode() ) it show the following : `1234567890-=[]\\…
Jan
  • 9,208
  • 6
  • 22
  • 33
2
votes
5 answers

OutOfMemoryException when creating huge string in ASP.NET

When exporting a lot of data to a string (csv format), I get a OutOfMemoryException. What's the best way to tackle this? The string is returned to a Flex Application. What I'd do is export the csv to the server disk and give back an url to Flex.…
Lieven Cardoen
  • 23,220
  • 47
  • 141
  • 228
2
votes
3 answers

Response.Write DataTable Data to Text File, ASP.net Hangs

Very odd problem as this is working perfectly on our old Classic ASP site. We are basically querying the database and exporting around 2200 lines of text to a Text File through Response.Write to be output to a dialog box and allows the user to save…
jlrolin
2
votes
2 answers

Appending to BODY element

Just before (or during) rendering page I would like to append a piece of code (java script). However when I try to add new LiteralControl via Page.Controls property I get an error: The Controls collection cannot be modified because the control…
dragonfly
  • 16,119
  • 28
  • 99
  • 199
2
votes
2 answers

response.write only working IE for ASP.NET

I'm using uploadify (http://www.uploadify.com/) to upload video to my site then convert them into *.flv using ffmpeg and play preview. But it dosen't fully working with firefox, chrome or safari. uploadify provides a onComplete interface, so when…
user294720
  • 63
  • 6
2
votes
2 answers

response.write writes after html closing tag, how to instead replace a string from the response inside html?

in the global.asax to measure the request execution time in the onbeginrequest (start the stopwatch) and onendrequest (calculate the difference). then in the end request do response.write with the result. however it writes the result AFTER the…
b0x0rz
  • 3,793
  • 7
  • 47
  • 81
2
votes
3 answers

Response.WriteFile with a URL possible?

I would like to be able to do this: Response.WriteFile ("http://domain/filepath/file.mpg") But, I get this error: Invalid path for MapPath 'http://domain/filepath/file.mpg' A virtual path is expected. The WriteFile method does not appear to work…
Nick
  • 7,309
  • 15
  • 73
  • 127
2
votes
1 answer

C# - Stream a PDF using Response.TransmitFile() or Response.WriteFile() And then select a page

I want to stream a pdf from a directory on the server using an ASP.NET page. This works fine. The catch is that I want to pass Adobe Open Parameters to land on a specific page. Adobe has parameters for this: http://url/filename.pdf#page=XX But, I…
Zach
  • 63
  • 7
2
votes
1 answer

ASP Recomendation needed: (Linq or SqlDataSource?) + (Response.Write or UserControls or Repeater?

I'm a bid new in ASP.net and developing a website that holds user-friendly list of categorized items and when clicked the details for the items (image gallery, text, contact forms, that kind of stuff, and maybe later user comments and rates). I've…
Drakell
  • 140
  • 1
  • 10
2
votes
6 answers

How to execute multiple ClientScript.RegisterStartupScript in ASP.NET c#?

I'm developing a gridview in which you can download multiple files with one button. Here's my gridview:
Victor
  • 1,066
  • 9
  • 27
  • 51
1 2
3
9 10