Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 27th, 2006, 10:08 AM
Authorized User
 
Join Date: Feb 2006
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Trouble display complete string in table

Below is a cut down of some code that I am having problems with. I store into the variable --- Title1 = "begin the path". But when I display it in my table it only display "Begin". Not the whole variable. What do I need to do to display the whole string. Thanks in advance - Brendon

<%@ Language="vbscript" %>
<%Option Explicit%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
   <link rel="stylesheet" type="text/css" href="styles.css" >
</head>
<body>
<%
dim ISBN1
dim Title1
dim Price1
dim Date1


Private Sub displayAllBooksArray(v_recordnumber)

   Title1 = "begin the path"

end sub

if request.Form("TITLE") = "" THEN

    displayAllBooksArray(-97)
   %>
   <form name = "myform" method="post" action="book.asp" runat="server">

      <table width="70%" cellpadding="0" cellspacing="0" border="1" cols="5" align="center" ID="Table1">
         <tr>
            <td colspan="5" align="center" class="setheaderfont">
            </br>
            Big Books book shop
            <br></br>
         </tr>
         <tr>
            <td class="sectionbgcolor"><b>ISBN</b></td>
            <td class="sectionbgcolor"><b>TITLE</b></td>
            <td class="sectionbgcolor"><b>PRICE</b></td>
            <td class="sectionbgcolor"><b>DATE PUBLISHED</b></td>
            <td class="sectionbgcolor"></td>
         </tr>
         <tr>
            <td class="sectionbgcolor1"><input type="text" name="ISBN" ID="Text1" value=<% = ISBN1 %>></td>
            <td class="sectionbgcolor1"><input type="text" name="TITLE" ID="Text2" value=<% = TITLE1 %>></td>
            <td class="sectionbgcolor1"><input type="text" name="PRICE" ID="Text3" value=<% = PRICE1 %>></td>
            <td class="sectionbgcolor1"><input type="text" name="DATE_PUBLISHED" ID="Text4" value=<% = DATE1 %>></td>
         </tr>

      </table>
   </form>
<% end if %>
</body>
</html>

  #2 (permalink)  
Old February 27th, 2006, 10:37 AM
Authorized User
 
Join Date: Dec 2005
Location: bangalore, karnataka, India.
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to g_vamsi_krish
Default

use nowrap in the <tr>.

vamsi
  #3 (permalink)  
Old February 27th, 2006, 10:37 AM
Authorized User
 
Join Date: Dec 2005
Location: bangalore, karnataka, India.
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to g_vamsi_krish
Default

use nowrap in the <td>.

vamsi
  #4 (permalink)  
Old February 27th, 2006, 10:40 AM
Authorized User
 
Join Date: Feb 2006
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for you help.

Can you just give me a quick example of nowrap on <TD>. I am very new to HTML.

Thanks

Brendon

  #5 (permalink)  
Old February 27th, 2006, 10:58 AM
Authorized User
 
Join Date: Dec 2005
Location: bangalore, karnataka, India.
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to g_vamsi_krish
Default

 <td nowrap width=25%>

vamsi
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Connection String Trouble mat41 Classic ASP Basics 12 June 29th, 2008 07:53 PM
Not getting complete table incorporated alh45 BOOK: Beginning Access 2003 VBA 0 March 22nd, 2006 04:19 PM
copy complete data in one table to another ramanadyv SQL Language 2 March 4th, 2006 11:53 PM
Connection string and file include trouble cramerjj Classic ASP Databases 2 February 26th, 2005 04:46 AM
Storing complete table rows in a single field KenNeedham Oracle 2 January 22nd, 2004 01:45 PM



All times are GMT -4. The time now is 11:20 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.