Questions tagged [response.write]
141 questions
1
vote
4 answers
Do I need Response.End() in ASP.Net 2.0
I am just starting with ASP.Net. I copied a ex-co-worker's code (from .Net 1.1 era) and it has a Response.End(); in case of an error. There is also a:
catch (Exception ex)
{
Response.Write(ex.Message);
…

Hamish Grubijan
- 10,562
- 23
- 99
- 147
1
vote
3 answers
Gets Error while i write Response.write() on click event of button
Sys.Webforms.PageRequestManagerParserErrorException: The message received
from the server could not be parsed. Common causes for this error are
when the response is modified by calls to Response.Write(), response
filters, HttpModules, or…

Khilen
- 1,009
- 2
- 15
- 27
1
vote
2 answers
how to display response.write in asp.net
I'm trying to display response.write function after user completes registration form.
I've done it like this, but it doesn't work. I already tried both ways, still nothing has changed.
Response.Redirect("Login");
Response.Write("Registration…

fkr
- 155
- 3
- 9
- 21
1
vote
2 answers
ASP javascript write at the point of execution
I am trying to develop a simple back-end widget for asp. Since, I am new to ASP, I chose JavaScript as ASP language. I think I don't have the right tool to write to output. Response.Write() sends output directly to the start of the page. What I am…

cnvzmxcvmcx
- 1,061
- 2
- 15
- 32
1
vote
3 answers
How to make Response.Write Display special character like "<",">"
I want to use Response.Write to display some text on the screen using ASP.NET
I created a variable
String s = "There is some which is not visible";
Response.Write(s);
What I found is when the browser only display "There is some which…

ks_baba
- 29
- 3
- 11
1
vote
3 answers
Response.Write or plain ol' HTML
What is better coding practice, with speed in mind (Classic ASP):
sPg=sPg& "
1
vote
1 answer
WCF Service returning Response.Write
I have a WCF service that will be called from a HTML form located in the customer's network.
When the same form is posting the exact same data to an ASP page it expects a response like:
Response.Write "SUCCESS" & vbnewline
How can I send the same…

anon2009
- 111
- 3
- 15
1
vote
2 answers
Clearing a Response in Postback to download text file from Button Click
Now... I could do this is a separate page, but i don't want to!
I am trying to create a service which fetches a load of JS files required for a project, compresses them and downloads a single file, but what it does isn't really the issue, the…

Jamie Hartnoll
- 7,231
- 13
- 58
- 97
1
vote
2 answers
Sending Excel file to User working with Chrome and IE but not firefox(Get file with no extension)
I am generating and excel file using the OpenXML library and sending it to the user.
It works very well with Chrome and IE but when i tried it with Firefox i came upon a problem.
When saving the file using FF i get a File with no extension
When…

AngelicCore
- 1,413
- 3
- 22
- 40
1
vote
1 answer
XML file written to Response contains page HTML
I'm trying to write an XML file to the response when a button is clicked so the user can download the file. This works fine with an Excel file, but when I use the "text/xml" content type the file contains the expected contents, but with the webpage…

tedski
- 2,271
- 3
- 27
- 48
1
vote
1 answer
What is the minimum amount of HTML an UpdatePanel requires before it falls over?
If for instance, I was to give a response back to an ASP.Net Update Panel page, but use Response.Write and then end it before anything was rendered, what is the minimum I would need to write in the Response.Write?

Paul
- 9,409
- 13
- 64
- 113
1
vote
1 answer
Refresh UpdatePanel after a "File Download" dialog Box
I have a User control inside an Update Panel. I trigger a Export to excel from inside this user control on button click. Everything works fine. I get the File Download box. When the "File Download" box is closed, I want the updatepanel to post back…
Viswa
1
vote
2 answers
How to user Response.Write to redirect to a url?
I want to use Response.Write() in VB.NET to redirect to relative Url. I am using the following code:
EDIT:
Response.Write(("account/msgbox.aspx?action=account&status=" &…

Steve Johnson
- 3,054
- 7
- 46
- 71
1
vote
1 answer
Creating child page popup using a response object disrupts formatting of parent page
I've got a web page from which I'm spawning a pop-up with a response object to create/download a vcard. It functions as expected, but the font size on my parent page becomes huge, and only reverts back to its original when I refresh the page. How do…

user948060
- 953
- 3
- 12
- 25
1
vote
1 answer
trigger download from iFrame in .NET
Ok so bear with me here. I have an umbraco site which has an external control embedded in it (an ascx file and a dll).
I'm mentioning that it's umbraco so that you know we have no control over most aspects of the page lifecycle, otherwise it…

Nick
- 2,877
- 2
- 33
- 62