Wrox Home  
Search P2P Archive for: Go

  Return to Index  

proasp_howto thread: RE: proasp_howto digest: February 02, 2002


Message #1 by "Michael Mason" <Michael@M...> on Sat, 2 Feb 2002 22:24:29 -0500
Your are basically trying to place
	"<tr><td>stuff1<td><td>stuff2<td><td>stuff3<td></tr>"
into a set of <TD> </TD> tags. But the table formatting would be wrong...
You can't place a <TR> into a <TD> unless it is in a table.

You can place <table> and </table> around your <TR> & </TR> and it should
work.

	sTempAddText = "	<table><tr><td>"
	sTempAddText = sTempAddText & "blah, blah..."
	sTempAddText = sTempAddText & "</td></tr></table>"

Hope this helps.
Michael Mason







-----Original Message-----
From: Pro ASP HowTo digest [mailto:proasp_howto@p...]
Sent: Saturday, February 02, 2002 07:03 PM
To: proasp_howto digest recipients
Subject: proasp_howto digest: February 02, 2002


-----------------------------------------------
When replying to the digest, please quote only
relevant material, and edit the subject line to
reflect the message you are replying to.
-----------------------------------------------

The URL for this list is:
http://p2p.wrox.com/list.asp?list=proasp_howto

PROASP_HOWTO Digest for Saturday, February 02, 2002.

1. Need a second pair of eyes to look at something
2. RE: Need a second pair of eyes to look at somethin-     g
3. Re: Need a second pair of eyes to look at something

----------------------------------------------------------------------

Subject: Need a second pair of eyes to look at something
From: "Christopher Cote" <cotec@s...>
Date: Sat, 2 Feb 2002 17:29:14
X-Message-Number: 1

Hi folks,
   I have a very perplexing problem that I can't figure out.  In my ASP
page, I have a select case statement to put together a certain string.
However, one of the lines in the case never appears.  Here's what I have:

sType=Request.Form("Type")

Select Case (sType)
...
...
  Case "TA":
        sTempAddText = "	<tr>" & vbCRLF & "		<td
align=" & Chr(34) & "right" & Chr(34) & " valign=" & Chr(34) & "top" & Chr
(34) & ">" & sLabel & "</td>" & vbCRLF & "		<td valign=" & Chr
(34) & "top" & Chr(34) & ">"
	sTempAddText = sTempAddText & "<textarea rows=" & Chr(34) & "5" &
Chr(34) & " cols=" & Chr(34) & "25" & Chr(34) & " name=" & Chr(34) & sName
& Chr(34) & " wrap=" & Chr(34) & "virtual" & Chr(34)
	sTempAddText = sTempAddText & "</textarea></td>" & vbCRLF & "
	</tr>" & vbCRLF
...
...

<td><%=sTempAddText%></td>

I don't know what is wrong with this, but when I get the page, I only
receive what is on the first 2 lines.  The text from the last line is
never added to the string.  Some of the other case statements have longer
strings that will actually display, so I don't think it has anything to do
with string length.  Besides, even if I comment every line except the last
line of this case, I get nothing.
   If somebody can see what's wrong here, please let me know.

Chris
----------------------------------------------------------------------

Subject: RE: Need a second pair of eyes to look at somethin-     g
From: "Parham, Barry" <bparham@n...>
Date: Sat, 2 Feb 2002 12:26:37 -0500
X-Message-Number: 2

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1AC0E.C4DFDE90
Content-Type: text/plain;
	charset="iso-8859-1"

I don't see a closing bracket for the textarea element.

?
~~~~~~~~~~~~
Barry Parham
www.the-diaTribe.com



-----Original Message-----
From: Christopher Cote [mailto:cotec@s...]
Sent: Saturday, February 02, 2002 12:29 PM
To: Pro ASP HowTo
Subject: [proasp_howto] Need a second pair of eyes to look at something


Hi folks,
   I have a very perplexing problem that I can't figure out.  In my ASP
page, I have a select case statement to put together a certain string.
However, one of the lines in the case never appears.  Here's what I have:

sType=Request.Form("Type")

Select Case (sType)
...
...
  Case "TA":
        sTempAddText = "	<tr>" & vbCRLF & "		<td
align=" & Chr(34) & "right" & Chr(34) & " valign=" & Chr(34) & "top" & Chr
(34) & ">" & sLabel & "</td>" & vbCRLF & "		<td valign=" & Chr
(34) & "top" & Chr(34) & ">"
	sTempAddText = sTempAddText & "<textarea rows=" & Chr(34) & "5" &
Chr(34) & " cols=" & Chr(34) & "25" & Chr(34) & " name=" & Chr(34) & sName
& Chr(34) & " wrap=" & Chr(34) & "virtual" & Chr(34)
	sTempAddText = sTempAddText & "</textarea></td>" & vbCRLF & "
	</tr>" & vbCRLF
...
...

<td><%=sTempAddText%></td>

I don't know what is wrong with this, but when I get the page, I only
receive what is on the first 2 lines.  The text from the last line is
never added to the string.  Some of the other case statements have longer
strings that will actually display, so I don't think it has anything to do
with string length.  Besides, even if I comment every line except the last
line of this case, I get nothing.
   If somebody can see what's wrong here, please let me know.

Chris
$subst('Email.Unsub').


----------------------------------------------------------------------

Subject: Re: Need a second pair of eyes to look at something
From: "Steffen Wogensen Jaques" <webmaster@w...>
Date: Sat, 2 Feb 2002 20:08:19 +0100
X-Message-Number: 3

Select Case (sType)
  Case "TA"
        sTempAddText = " <tr>" & vbCRLF & " <td align=""right""
valign=""top"">" & sLabel & "</td>" & vbCRLF & "<td valign=""top"">"
        sTempAddText = sTempAddText & "<textarea rows=""5"" cols=""25""
name=""" & sName & """ wrap=""virtual"
        sTempAddText = sTempAddText & "</textarea></td>" & vbCRLF & "</tr>"
& vbCRLF

----- Original Message -----
From: "Christopher Cote" <cotec@s...>
To: "Pro ASP HowTo" <proasp_howto@p...>
Sent: Saturday, February 02, 2002 5:29 PM
Subject: [proasp_howto] Need a second pair of eyes to look at something


> Hi folks,
>    I have a very perplexing problem that I can't figure out.  In my ASP
> page, I have a select case statement to put together a certain string.
> However, one of the lines in the case never appears.  Here's what I have:
>
> sType=Request.Form("Type")
>
> Select Case (sType)
> ...
> ...
>   Case "TA":
>         sTempAddText = " <tr>" & vbCRLF & " <td
> align=" & Chr(34) & "right" & Chr(34) & " valign=" & Chr(34) & "top" & Chr
> (34) & ">" & sLabel & "</td>" & vbCRLF & " <td valign=" & Chr
> (34) & "top" & Chr(34) & ">"
> sTempAddText = sTempAddText & "<textarea rows=" & Chr(34) & "5" &
> Chr(34) & " cols=" & Chr(34) & "25" & Chr(34) & " name=" & Chr(34) & sName
> & Chr(34) & " wrap=" & Chr(34) & "virtual" & Chr(34)
> sTempAddText = sTempAddText & "</textarea></td>" & vbCRLF & "
> </tr>" & vbCRLF
> ...
> ...
>
> <td><%=sTempAddText%></td>
>
> I don't know what is wrong with this, but when I get the page, I only
> receive what is on the first 2 lines.  The text from the last line is
> never added to the string.  Some of the other case statements have longer
> strings that will actually display, so I don't think it has anything to do
> with string length.  Besides, even if I comment every line except the last
> line of this case, I get nothing.
>    If somebody can see what's wrong here, please let me know.
>
> Chris
$subst('Email.Unsub').





---

END OF DIGEST

$subst('Email.Unsub').


  Return to Index