Wrox Programmer Forums
|
BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4
This is the forum to discuss the Wrox book Beginning Dreamweaver MX by Charles E. Brown, Imar Spaanjaars, Todd Marks; ISBN: 9780764544040
Please indicate which version of the book you are using when posting questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 7th, 2006, 10:43 AM
Authorized User
 
Join Date: Jan 2006
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default Asp Help

response.write (myText) & " Was added to the database"

Hi, I am having some problem with out putting the result of the above response.write to page. It is wrapping accross the top and i'd like it to break one line down and be centered? It is within an "If/Then/else" block. Not sure if this is the right forum to post asp related questions so my apolgies if I shouldn't be. Thanks

 
Old February 7th, 2006, 02:58 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Keith,

Response.Write write the output at the location where it's called. So, if you call it before <html> for example, you get weird results.

You could store the message in a variable, and then later display it:

Dim message
message = "Whatever you want it to be"

And then later in the page:

<div style="text-align: center;"><%=message%></div>

You can style the div any way you see fit...

A true ASP forum, located here: http://p2p.wrox.com/asp-net-asp-12 , is probably a lot better than this Beginning Dreamweaver forum, as the question is not really related to the book.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Miss You by Incubus (Track 11 from the album: Make Yourself) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
send parameters from asp page to an asp.net form hastikeyvan ASP.NET 1.0 and 1.1 Basics 2 March 29th, 2008 01:32 AM
using asp.net web user control in asp 3.0 App i_shahid Classic ASP Professional 0 January 8th, 2008 07:32 AM
Custom HTTP 404 Problem w/ASP to ASP.NET kwilliams ASP.NET 2.0 Professional 7 November 26th, 2007 04:17 PM
Upgrading ASP w/ SQLserver 2000 to ASP.NET w/2005 cJeffreywang ASP.NET 2.0 Basics 1 April 5th, 2007 11:30 PM
Porting a sa,ple ASP CR viewer app to ASP.NET jhansen42 Crystal Reports 0 August 29th, 2003 10:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.