Questions tagged [response.write]

141 questions
2
votes
1 answer

SQL Azure data not writing?

I'm new to Azure, and exploring it for my company's internal company site. We've been using a local MS SQL 2008 Express database, which I have setup to sync with Azure for testing. Everything sync perfectly, all the data is there, but for some…
1
vote
0 answers

Session lost for return URL of GetResponse()

I am making a WebRequest from Page1 to Page2. Page2 process the information and sends the URL link(http://xyz/abc/Page3.aspx) in response to Page1. Page2 and Page3 belong to same solution and share session variables. In Page1, once it receive the…
1
vote
1 answer

.NET 4.0 Page.Response.Write vs <%= %>

I have some UserControls in a webpage. When I use it in the ASPX code of my UserControl as such
<% Page.Response.Write("test") %>
, my anchor is rendered at the start of the page:
Cédric Boivin
  • 10,854
  • 13
  • 57
  • 98
1
vote
1 answer

Response.Write output in code block is appearing outside html

Putting aside any debate about whether you should even use Response.Write in the HTML portion of an .aspx, in a project I am working on variables from the code behind are being displayed on the front-end using Response.Write. It used to work fine…
Andreas
  • 11
  • 2
1
vote
1 answer

Implement .net mvc BeginLabel like BeginForm response.write issue

I have a requirement to roll my own BeginLabel helper for Mvc. I checked/stole the concept from the Mvc source for the html.beginForm / ajax.beginForm methods. public static Label BeginLabel(this HtmlHelper htmlHelper) { TagBuilder tagBuilder =…
Phil Cooper
  • 3,083
  • 39
  • 63
1
vote
0 answers

Display Images MHTML

I have a byte array of MHTML. When I do a Response.BinaryWrite in the Page_Load event, it displays fine. When I do the same in a button click event, the images do not display. I looked at the HTTP Headers in each case and only see that the button…
user472292
  • 1,069
  • 2
  • 22
  • 37
1
vote
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,547
  • 5
  • 23
  • 28
1
vote
2 answers

Python file writing error because of "/" in the file name

I have a code chunk like this for track in (results['tracks']): track_id_chunk.append(track['uri']) print (str(z) + " - " + track['name']) try: r = requests.get(track['preview_url'], allow_redirects=True) …
Emre Unsal
  • 159
  • 1
  • 2
  • 13
1
vote
4 answers

why Response.Write destroy align of the whole page?

My application use a masterpage which the ContentPlaceHolder align is center. But whenever, I use Response.Write() function to write something on screen, the whole page just changed to align left. I'm thinking, jquery ajax function could let me…
Steven Zack
  • 4,984
  • 19
  • 57
  • 88
1
vote
3 answers

How to handle jSON XMLHttpRequest response?

I'm trying to control the json response I send back to the client but didnt know exactly how.. Here is a simple demo: js code xhr = new XMLHttpRequest(); xhr.open("POST", "page.aspx", true); xhr.send(); // handle the response with…
Nir
  • 2,497
  • 9
  • 42
  • 71
1
vote
5 answers

Response.Write Output Problem

I cant figure out why when I try to output an image and a line of text below I only get the image what Am I doing wrong? SqlConnection cn = new SqlConnection("CONNECTIONINFO HERE"); SqlCommand cmd = new SqlCommand("SELECT * FROM…
atrljoe
  • 8,031
  • 11
  • 67
  • 110
1
vote
0 answers

How to set a javascript code value for an asp variable?

How to set a javascript code value for an asp variable? In the following code title: '<%=Zaman%>', part <%if act="buhafta" then%> gives an empty result. What I have to do to make sure there is no empty result. "); and I want to get this text from 'alert' box in jQuery. Text what I want is 'Click Checkbox'. How can I get it?
naanace
  • 363
  • 1
  • 4
  • 17
1
vote
2 answers

MVC5 Razor Response.Write - text position

I am trying to add a label using Response.Write
@if (ViewBag.Message == "1") { Response.Write(Html.Label("text")); }
It works, however the text shows on the top of the screen not in the correct position, did not…
hncl
  • 2,295
  • 7
  • 63
  • 129