Hi,
When I use
Response.Write "something"
it is placed at the top op de html document above the <HTML> tag.
I need it to be put in the BODY part.
How can I do this?
rg,
Eric
Nov 19 '05
22 1602
BTW, Tom, if you don't like the advice, ignore it. If you think you have
better advice to give, then give it. What advice I give is none of your
business. Or are you the self-appointed guardian of the Internet?
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
"Tom wilson" <ye*******@nosp am.com> wrote in message
news:05******** *************** *********@4ax.c om... On Tue, 29 Mar 2005 16:48:07 -0500, "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote:
I could have given him some cough syrup and sent him on his merry way. My conscience wouldn't allow me to do that. So, I risked your wrath, and the wrath of all the other self-appointed judges out there, and told him what he needed to hear, not necessarily what he wanted to hear. Sue me.
So the better solution is 'rtfm'? I'm sure he's out there buried in textbooks for weeks trying to figure out what I gave him in 3 paragraphs. I asked the same question once. I got a reply like yours which was 100% useless and a small code example like the one I provided. I had my pages working in hours.
Anyone can say read the manual. Knowledgable people answer his question.
Hello Kevin,
First of all, dont tell me what you think I would do. My track record in
this newsgroup and the others I participate in speaks for itself. I much
prefer to point people towards a solution rather than providing a ready made
one. You know, teach a man to fish...
Listening to you though, it would appear that you think you are the only
GOOD person in this newsgroup. Most everyone else does not have a problem
putting forth a simple solution to help out and directing the poster to additional
information if they feel it necessary.
You know, a majority of the people posting questions in this newsgroup probably
do not understand the fundamentals of OOP. Why not just make it a prerequiste
that they master these fundamentals prior to asking a simple question?
Need to know how to do something with ASP.NET? Learn the intricacies of Object
Oriented Programming first.
Need to know how to make a line of text end up in the <body> section? Before
we do that, why dont you master the principles of inheritance, polymorphism
and encapsulation.
Give me a frickin break...
As far as my post helping the original poster... Perhaps you failed to realize
in your god-like state that I was responding to you and your condescending
tone. I'm still baffled that an MVP can conduct him/herself in this manner
in a Microsoft sponsored public forum.
--
Matt Berther http://www.mattberther.com And this response helped how? I have no idea. A response can help, but it is up to the receiver to make it help. A doctor can prescribe medicine, but if the patient doesn't take it, the patient doesn't get well.
In the time that it takes to come off with an answer like this, why not construct an answer that may remotely help the original poster? Well, now, if I were a doctor, and someone came into my office with a cough, I suppose I could give them some cough syrup and send them on their merry way. Somehow I get the feeling that this is what you would do. A GOOD doctor would examine the patient, determine the disease that is causing the symptoms, and prescribe some medicine that would kill the disease, not simply make the patient stop coughing.
In this case, my self-appointed Mentor, I diagnosed that the poster had virtually no experience with Object-oriented programming, and was trying to work with technology that he was almost completely unfamiliar with. How did I diagnose this? Well, I read between the lines. Wish I could explain the technique to you, but it requires some abstract thought to comprehend.
I could have given him some cough syrup and sent him on his merry way. My conscience wouldn't allow me to do that. So, I risked your wrath, and the wrath of all the other self-appointed judges out there, and told him what he needed to hear, not necessarily what he wanted to hear. Sue me.
BTW, how much did your post help him? Or did you just want to be recognized as a beacon of compassion in a coldly logical world?
Kevin Spencer Microsoft MVP .Net Developer What You Seek Is What You Get. "Matt Berther" <mb******@hotma il.com> wrote in message news:22******** *************** ****@news.micro soft.com...
Hello Kevin,
And this response helped how?
In the time that it takes to come off with an answer like this, why not construct an answer that may remotely help the original poster?
-- Matt Berther http://www.mattberther.com Well, you've got 2 choices:
1. Use ASP (looks like what you're used to) 2. Learn ASP.Net's Object-oriented programming model. Kevin Spencer Microsoft MVP .Net Developer What You Seek Is What You Get. "EMW" <so*****@MikroZ oft.com> wrote in message news:42******** **************@ dreader2.news.t iscali.nl... Hi,
When I use Response.Write "something" it is placed at the top op de html document above the <HTML> tag. I need it to be put in the BODY part. How can I do this? rg, Eric
Thanks Tom.
Also thanks for those in this thread who tried to help.
As for the ones having a discussion on how to answer a message....take it to
another newsgroup.
Tom,
I am trying to add a <MAP MAP="map1"><ARE A .....><AREA.... ...></MAP> section
to my aspx page.
AS I understand your example, I should just use a placeholder, somewhere on
the page?
rg,
Eric
"Tom wilson" <ye*******@nosp am.com> schreef in bericht
news:th******** *************** *********@4ax.c om... This might make more sense and this is what I do.
Create a new aspx page and at the top put a PlaceHolder control. Call it something like PH1. Next, you need to append your page content to the pageholder. So lets say the first thing on the page is a heading:
Dim T1 as New LiteralControl T1.Text = "<FONT Face = ""Arial"">T his is my heading</FONT>" T1.ID = "T1" ' Optional PH1.Controls.Ad d(T1)
Dim B1 as new Button B1.Text = "Submit" B1.ID = SomeVal PH1.Controls.Ad d(B1)
When this page is loaded you'll get a heading and a button below it. For more complex pages with tables an so on I typically define strings like:
TableStart as String = "<TABLE><TR><TD >" MyContent as String = "<DIV Align=Center>My Content!</DIV>" TableEnd as String = "</TD></TR></TABLE>"
I then define 3 LiteralControl' s, assign the text to them and add them in order to the placeholder. I found this method much more flexible for inserting error texts into the page (actually into the placeholder order). I use response.write only for temporary debugging messsages. You can also visually design a skeleton of your page and put placeholders where you want dynamic content to appear. I recently did an entire aspx page of nothing but dynamically created controls and content. It works very well.
Pardon any errors above but it's a better answer than 'rtfm'. ;)
On Tue, 29 Mar 2005 22:19:59 +0200, "EMW" <so*****@MikroZ oft.com> wrote:
Hi,
When I use Response.Write "something" it is placed at the top op de html document above the <HTML> tag. I need it to be put in the BODY part.
How can I do this?
rg, Eric
> My track record in this newsgroup and the others I participate in speaks for itself.
Googled newsgroups on "Matt Berther". 687 results.
Googled newsgroups on "Kevin Spencer" asp.net. 4,560 results.
Listening to you though, it would appear that you think you are the only GOOD person in this newsgroup.
It is irrelevant what Kevin thinks. What is relevant, that his answers are
the most valuable asset of this newsgroup. Note that I don't know Kevin
personally.
Most everyone else does not have a problem putting forth a simple solution to help out and directing the poster to
additional information if they feel it necessary.
Depends on how much time you have to write answers. What makes you think
that 10 minutes of my time is less valuable than 2 hours of the original
poster's work? And, as Kevin noted, you can always ignore an answer if you
don't like/understand it.
Eliyahu
Don't you have somebody else's business to mind? I think there's an opening
in Florida.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
"Matt Berther" <mb******@hotma il.com> wrote in message
news:22******** *************** ****@news.micro soft.com... Hello Kevin,
First of all, dont tell me what you think I would do. My track record in this newsgroup and the others I participate in speaks for itself. I much prefer to point people towards a solution rather than providing a ready made one. You know, teach a man to fish...
Listening to you though, it would appear that you think you are the only GOOD person in this newsgroup. Most everyone else does not have a problem putting forth a simple solution to help out and directing the poster to additional information if they feel it necessary.
You know, a majority of the people posting questions in this newsgroup probably do not understand the fundamentals of OOP. Why not just make it a prerequiste that they master these fundamentals prior to asking a simple question? Need to know how to do something with ASP.NET? Learn the intricacies of Object Oriented Programming first. Need to know how to make a line of text end up in the <body> section? Before we do that, why dont you master the principles of inheritance, polymorphism and encapsulation.
Give me a frickin break...
As far as my post helping the original poster... Perhaps you failed to realize in your god-like state that I was responding to you and your condescending tone. I'm still baffled that an MVP can conduct him/herself in this manner in a Microsoft sponsored public forum.
-- Matt Berther http://www.mattberther.com
And this response helped how? I have no idea. A response can help, but it is up to the receiver to make it help. A doctor can prescribe medicine, but if the patient doesn't take it, the patient doesn't get well.
In the time that it takes to come off with an answer like this, why not construct an answer that may remotely help the original poster? Well, now, if I were a doctor, and someone came into my office with a cough, I suppose I could give them some cough syrup and send them on their merry way. Somehow I get the feeling that this is what you would do. A GOOD doctor would examine the patient, determine the disease that is causing the symptoms, and prescribe some medicine that would kill the disease, not simply make the patient stop coughing.
In this case, my self-appointed Mentor, I diagnosed that the poster had virtually no experience with Object-oriented programming, and was trying to work with technology that he was almost completely unfamiliar with. How did I diagnose this? Well, I read between the lines. Wish I could explain the technique to you, but it requires some abstract thought to comprehend.
I could have given him some cough syrup and sent him on his merry way. My conscience wouldn't allow me to do that. So, I risked your wrath, and the wrath of all the other self-appointed judges out there, and told him what he needed to hear, not necessarily what he wanted to hear. Sue me.
BTW, how much did your post help him? Or did you just want to be recognized as a beacon of compassion in a coldly logical world?
Kevin Spencer Microsoft MVP .Net Developer What You Seek Is What You Get. "Matt Berther" <mb******@hotma il.com> wrote in message news:22******** *************** ****@news.micro soft.com...
Hello Kevin,
And this response helped how?
In the time that it takes to come off with an answer like this, why not construct an answer that may remotely help the original poster?
-- Matt Berther http://www.mattberther.com Well, you've got 2 choices:
1. Use ASP (looks like what you're used to) 2. Learn ASP.Net's Object-oriented programming model. Kevin Spencer Microsoft MVP .Net Developer What You Seek Is What You Get. "EMW" <so*****@MikroZ oft.com> wrote in message news:42******** **************@ dreader2.news.t iscali.nl... > Hi, > > When I use > Response.Write "something" > it is placed at the top op de html document above the <HTML> tag. > I need it to be put in the BODY part. > How can I do this? > rg, > Eric
Why would you use a literal control for this? Wouldn't a better solution be
to an HtmlTable and add that to the place holder. Creating strings for your
html really reeks of someone who moved up to asp .net from asp and still
doesn't know what they're doing.
I moved from nothing (with a little knowledge of html and still growing
experience of vb.net) to ASP.NET.
"Scott Simons" <Scott.Simons.A t.MealMagic.Com .Remove.This> schreef in
bericht news:91******** *************** ***********@mic rosoft.com... Why would you use a literal control for this? Wouldn't a better solution be to an HtmlTable and add that to the place holder. Creating strings for your html really reeks of someone who moved up to asp .net from asp and still doesn't know what they're doing.
Please stop this....
this newsgroup is for grown ups only!
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> schreef in bericht
news:eR******** ******@TK2MSFTN GP10.phx.gbl... Don't you have somebody else's business to mind? I think there's an opening in Florida.
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer What You Seek Is What You Get.
"Matt Berther" <mb******@hotma il.com> wrote in message news:22******** *************** ****@news.micro soft.com... Hello Kevin,
First of all, dont tell me what you think I would do. My track record in this newsgroup and the others I participate in speaks for itself. I much prefer to point people towards a solution rather than providing a ready made one. You know, teach a man to fish...
Listening to you though, it would appear that you think you are the only GOOD person in this newsgroup. Most everyone else does not have a problem putting forth a simple solution to help out and directing the poster to additional information if they feel it necessary.
You know, a majority of the people posting questions in this newsgroup probably do not understand the fundamentals of OOP. Why not just make it a prerequiste that they master these fundamentals prior to asking a simple question? Need to know how to do something with ASP.NET? Learn the intricacies of Object Oriented Programming first. Need to know how to make a line of text end up in the <body> section? Before we do that, why dont you master the principles of inheritance, polymorphism and encapsulation.
Give me a frickin break...
As far as my post helping the original poster... Perhaps you failed to realize in your god-like state that I was responding to you and your condescending tone. I'm still baffled that an MVP can conduct him/herself in this manner in a Microsoft sponsored public forum.
-- Matt Berther http://www.mattberther.com
And this response helped how?
I have no idea. A response can help, but it is up to the receiver to make it help. A doctor can prescribe medicine, but if the patient doesn't take it, the patient doesn't get well.
In the time that it takes to come off with an answer like this, why not construct an answer that may remotely help the original poster?
Well, now, if I were a doctor, and someone came into my office with a cough, I suppose I could give them some cough syrup and send them on their merry way. Somehow I get the feeling that this is what you would do. A GOOD doctor would examine the patient, determine the disease that is causing the symptoms, and prescribe some medicine that would kill the disease, not simply make the patient stop coughing.
In this case, my self-appointed Mentor, I diagnosed that the poster had virtually no experience with Object-oriented programming, and was trying to work with technology that he was almost completely unfamiliar with. How did I diagnose this? Well, I read between the lines. Wish I could explain the technique to you, but it requires some abstract thought to comprehend.
I could have given him some cough syrup and sent him on his merry way. My conscience wouldn't allow me to do that. So, I risked your wrath, and the wrath of all the other self-appointed judges out there, and told him what he needed to hear, not necessarily what he wanted to hear. Sue me.
BTW, how much did your post help him? Or did you just want to be recognized as a beacon of compassion in a coldly logical world?
Kevin Spencer Microsoft MVP .Net Developer What You Seek Is What You Get. "Matt Berther" <mb******@hotma il.com> wrote in message news:22******** *************** ****@news.micro soft.com...
Hello Kevin,
And this response helped how?
In the time that it takes to come off with an answer like this, why not construct an answer that may remotely help the original poster?
-- Matt Berther http://www.mattberther.com > Well, you've got 2 choices: > > 1. Use ASP (looks like what you're used to) > 2. Learn ASP.Net's Object-oriented programming model. > Kevin Spencer > Microsoft MVP > .Net Developer > What You Seek Is What You Get. > "EMW" <so*****@MikroZ oft.com> wrote in message > news:42******** **************@ dreader2.news.t iscali.nl... >> Hi, >> >> When I use >> Response.Write "something" >> it is placed at the top op de html document above the <HTML> tag. >> I need it to be put in the BODY part. >> How can I do this? >> rg, >> Eric
YES!!!
got it working.
The stuff I wanted to put in is now where it should be.
Thanks for the help, Tom!
rg,
Eric
<St************ @gmail.com> schreef in bericht
news:11******** *************@g 14g2000cwa.goog legroups.com... Tom wilson wrote: This might make more sense and this is what I do.
Create a new aspx page and at the top put a PlaceHolder control. Call it something like PH1. Next, you need to append your page content to the pageholder. So lets say the first thing on the page is a heading: Dim T1 as New LiteralControl T1.Text = "<FONT Face = ""Arial"">T his is my heading</FONT>" T1.ID = "T1" ' Optional PH1.Controls.Ad d(T1)
Dim B1 as new Button B1.Text = "Submit" B1.ID = SomeVal PH1.Controls.Ad d(B1)
When this page is loaded you'll get a heading and a button below it. For more complex pages with tables an so on I typically define
strings like:
TableStart as String = "<TABLE><TR><TD >" MyContent as String = "<DIV Align=Center>My Content!</DIV>" TableEnd as String = "</TD></TR></TABLE>"
I then define 3 LiteralControl' s, assign the text to them and add them in order to the placeholder. I found this method much more flexible for inserting error texts into the page (actually into the placeholder order). I use response.write only for temporary debugging messsages. You can also visually design a skeleton of your page and put placeholders where you want dynamic content to appear. I recently did an entire aspx page of nothing but dynamically created controls and content. It works very well.
Tom, this answer helped me a lot. Just like the original poster, I did not know how to write dynamic content to the page. Thanks!
-Steve
He was referring to me. I got the literalcontrol method from another
helpful developer and it works very well. I don't have time to sift
though MS's 300,000 line 'simple' examples to find the most
complicated method of doing things.
I find far more flexibility to define my table segments as literals
than to use MS's table control. For the same reason I don't bind my
controls directly to data sources. Too many restrictions and too much
work to get around them. I mostly create my page frameworks in design
view and stick placeholders in where I need dynamic content and append
controls and data from there.
Use whichever method you prefer. A MS table control works great for
simple stuff. Play around with placeholders and adding controls,
you'll get the picture right away. If it were me I'd either add the
map definitions in design view or add them as literals before the end
body tag. But that's me. :) I do what works.
Tom
On Wed, 30 Mar 2005 15:50:30 +0200, "EMW" <so*****@MikroZ oft.com>
wrote: I moved from nothing (with a little knowledge of html and still growing experience of vb.net) to ASP.NET.
"Scott Simons" <Scott.Simons.A t.MealMagic.Com .Remove.This> schreef in bericht news:91******** *************** ***********@mic rosoft.com... Why would you use a literal control for this? Wouldn't a better solution be to an HtmlTable and add that to the place holder. Creating strings for your html really reeks of someone who moved up to asp .net from asp and still doesn't know what they're doing. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Colin Colin |
last post by:
I have an ASP program that is getting an error. When I get the error I
get Page Cannot Be Displayed along with the line that causes the error
and what the error is. What I am not getting is any data that I write
via response.write before the error occurs. The error is happening in a
loop, on the third line below:
RESPONSE.WRITE("x=" & x & ", " & aFieldsData(UpdateRecNum,x) &
"<BR>")
tFLD = trim(aFieldsData(UpdateRecNum,x))
tFLD =...
|
by: TinyTim |
last post by:
I'm a newbie at ASP & HTML. It seems that when you use server side
code and you're going to return a customized HTML form with several
fields and labels, you have to do an extensive amount of
Response.Writes.
Are there any tools that will let you design the form then convert
that form to Response.Writes that you can further customize with ASP
logic? For instance: use Dreamweaver to design the form, then another
program to convert to...
|
by: Eitan |
last post by:
Hello,
How can I write a line (with carriage return + line feed) to the client ?
response.write("abcd"), continue the last line, and doesn't put cr+lf.
response.writeLn is illegal syntax...
Thank :)
|
by: Mark |
last post by:
Hi...
I've come across some weird bug with Response.Cookies. Or maybe it will be
called "by design" but for the life of me I can't figure out what purpose it
would serve. If you're setting a cookie (say Response.Cookies ("TEST")) and
you have a query string variable &test=x or &Test=x and you get
Request.QueryString to parse the query string, the cookie that gets dropped
matches the case of the query string, not what your code says. ...
|
by: dotnettester |
last post by:
Woud this work?
.....
Response.end
set objConn = nothing
set objAnyObject = nothing
?
| |
by: Anne |
last post by:
hie there, i want to be able to pass multiple parameters
to another page. currently, i am able to do so, but
somehow i feel it is not the correct way to do it. below
is part of what i have so far.
'first page
Private Sub btnOK_ServerClick(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
btnOK.Click
Response.Redirect("InputValues.aspx?Requestor=" &
|
by: Luiz Vianna |
last post by:
Guys,
I need to send some info to my client while I'm processing some stuff. The flow will be something like :
-process
-response
-process
-response
....
I imagine to use response.flush (as I did on ASP) but it does not work. See my test code, after sending 2 lines on response, I'm simulating a processing time before sending other 2 lines.
|
by: Russ |
last post by:
My web app writes some binary data to a file at the client site via
Response.Write and Response.BinaryWrite. This action is accomplished
in response to a button click, with C# code behind as follows:
private void SubmitButton_Click (object sender, System.EventArgs e)
{
// Set up the response to write the print file to the client
Response.Clear ();
Response.AppendHeader ("Content-Disposition",
"filename=WebPrint.prn");
|
by: Shapiro |
last post by:
I have a scenario where I log a resquest to a database table and update the
request with a corresponding response including the response time. I am using
an HttpModule to do this.
My challenge is how to corelate the response to a corresponding request. I
am looking for a sure proof threadsafe way to corelate a response to a
coresponding request message.
Two things that concerns me:-
|
by: Terry Olsen |
last post by:
Is there any way to make response.write NOT be the first thing on the
page? I have a page with the title and a sub title (not labels or
anything, just typed into the designer). I want the response.write text
to appear below the titles and formatted (bold, sized, centered, etc).
Thanks.
*** Sent via Developersdex http://www.developersdex.com ***
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |