Questions tagged [response.write]
141 questions
0
votes
1 answer
How can I update the MVC View after it has painted?
How can I add output to an ASP.NET view after the main portions of the view have been displayed? Sort of "real time" if you will. The following sort of works, in that I get each line of output immediately between sleeps, but outputs all the…

Dave
- 1,822
- 2
- 27
- 36
0
votes
3 answers
Response.write multi line html for ASP?
I have an asp page that displays an online form after validating a user. I'm using Response.Write "form goes here" However, the form is very long (100+ lines).
Is there a way I can do Response.Write with multi-line html? I want to do something…

thedeepfield
- 6,138
- 25
- 72
- 107
0
votes
2 answers
Response.Write a javascript code but it doesn't work
I used Response.Write in code behind to run javascript in client like that,it fired in a RowCommand event of gridview:
protected void RowCommand(object sender, GridViewCommandEventArgs e)
{
var index = int.Parse(e.CommandArgument.ToString());
…

PhamMinh
- 2,515
- 3
- 20
- 18
0
votes
1 answer
embed HTML within ASP.net
I am trying to format items in shopping cart that I display in listbox in ASP.NET using MS Visual Studio 2010. The program displays them elements of each item as a concatenated string, which works but is less elegant than I would like.
My display…

user2350249
- 1
- 1
0
votes
2 answers
C# Response.Write CSV file not splits the cells
I have this code:
context.Response.ClearHeaders();
context.Response.AddHeader("content-disposition", "attachment; filename=Clients.csv");
context.Response.ClearContent();
context.Response.ContentType = "application/ms-excel";
…

Konstantin Fedoseev
- 191
- 2
- 15
0
votes
1 answer
Printer friendly Page Using Response.Write
I am required to create a print friendly Page containing just a few data fields from my one-page website. I have been told to do this by using Response.Write.
I was given this clue in my task:
The trick is to use the Response method, which is…

Rothmanberger
- 177
- 2
- 11
0
votes
2 answers
Response.WriteFile() -- not working asp net mvc 4.5
I've looked at many resources and the following should work, however my save as dialog box is never showing (not browser specific):
Response.ContentType = "application/octet-stream";
string downloadName = "Request "+request.RequestID+…

lohiaguitar91
- 522
- 5
- 9
0
votes
1 answer
I am trying to read image from different server and write on response
function media(req,res){
console.log(req.query.image);
var collectionName = 'imageTable';
var selector = MongoHelper.idSelector(req.query.image);
MongoHelper.findOne(selector, collectionName, function(err, image) {
…

vcxz
- 4,038
- 4
- 18
- 17
0
votes
2 answers
Response.WriteFile writing the webpage source instead of the text file
When I am trying to get a text file from shared location and when user opens it from web browser its not showing text file content and it is showing the page source. How to avoid that? What am i doing wrong? here is my code. but when i run in my…

Srav
- 59
- 3
- 7
0
votes
2 answers
Exporting DataTable to CSV on desired location (folder) using c#
I've been given a task to export data into the csv file. every thing is working fine apart from the destination folder. Every time it saves csv file on windows downloads (C:\Users\xxxpurt\Downloads) folder. I want to use a desired location to save…

xxxpurt
- 1
- 1
- 3
0
votes
1 answer
Limit of 88 bytes on response.write?
I am trying to serve a csv file from a wcf service, as a string response.
It looks like this:
HttpContext.Current.Response.AddHeader("Content-disposition", "attachment; filename=ImportErrors.csv");
HttpContext.Current.Response.ContentType =…

Chris
- 968
- 16
- 27
0
votes
1 answer
xmlhttp Request
In my application i am using xmlHttp that is calling by a javascript function to check the online user.
this xmlhttp called a asp page that checks the current status and response by response.write .
this functionality is going well but now i want to…

Abhishek
- 957
- 3
- 20
- 43
0
votes
2 answers
HttpHandler write to redirected page before sending file
I can never seem to find any docs on .net, and the official ones (when they're correct) are a hopeless maze.
I redirect a user with jQuery to an HttpHandler on a new page where I build and send an html table (and call it an excel file) on the fly. …
user1382306
0
votes
5 answers
Response.Write like behavior when code is executed in an Update Panel
Is there a way to make Response.Write work in an UpdatePanel and not cause the app to error out for obvious reasons? Or, is there a way to get similar results without more than one line of code in C#?

craigmoliver
- 6,499
- 12
- 49
- 90
0
votes
1 answer
Issue with Response.TransmitFile
I have been working on an issue for the past 2 days.I have tried to debug in every way possible but in vain.
Everything works fine on my local.But on production this fails.
Here is a brief description about the problem.
I have a download button and…

user1701874
- 1
- 1