Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Displaying text in .asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

RebelTech
Average Member

USA
613 Posts

Posted - 06 October 2003 :  13:09:15  Show Profile  Visit RebelTech's Homepage  Send RebelTech an ICQ Message
I have several spots on my snitz integrated site that I would like to post articles, text messages, etc... When I tried using straight html with the asp environment, things went haywire. So I tried the following code (this was a file of it's own that used to include in an .asp portal page.) :

<%
Response.Write  "<table width=""100%"" border=""0"" bordercolor=""" & strTableBorderColor & """ cellspacing=""1"" cellpadding=""0"" bgcolor=""" & strTableBorderColor & """>" & vbNewLine & _
		"<tr>" & vbNewLine & _
		"<td align=""left"">" & vbNewLine & _
		"<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"" bgcolor=""" & strForumCellColor & """>" & vbNewLine & _
		"<tr>" & vbNewLine & _
		"<td align=""center"">" & vbNewLine

     Response.Write    "<font face=""" & strDefaultFontFace & """ size=""" & strFooterHeaderSize & """ color=""" & strDefaultFontColor & """>[ Welcome to Texas Amateur Radio    ]<br><br>" & vbNewLine

    Response.Write     "</font></td>" & vbNewLine & _
		"</tr>" & vbNewLine & _
		"</table>" & vbNewLine & _
		"</td>" & vbNewLine & _
		"</tr>" & vbNewLine & _
		"</table>" & vbNewLine

%>

As you can see trying to write a paragraph with each line requiring   etc. is really too much. How can I simply create text or html file to be included in a .asp page without freaking out the .asppage?

redbrad0
Advanced Member

USA
3725 Posts

Posted - 06 October 2003 :  14:07:47  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message

<%
Response.Write  "<table width=""100%"" border=""0"" bordercolor=""" & strTableBorderColor & """ cellspacing=""1"" cellpadding=""0"" bgcolor=""" & strTableBorderColor & """>" & vbNewLine & _
		"<tr>" & vbNewLine & _
		"<td align=""left"">" & vbNewLine & _
		"<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"" bgcolor=""" & strForumCellColor & """>" & vbNewLine & _
		"<tr>" & vbNewLine & _
		"<td align=""center"">" & vbNewLine

     Response.Write    "<font face=""" & strDefaultFontFace & """ size=""" & strFooterHeaderSize & """ color=""" & strDefaultFontColor & """>" & vbNewLine
%>
You can type regular HTML in this area like this....<p>
[ Welcome to Texas Amateur Radio    ]<br><br>
<%
    Response.Write     "</font></td>" & vbNewLine & _
		"</tr>" & vbNewLine & _
		"</table>" & vbNewLine & _
		"</td>" & vbNewLine & _
		"</tr>" & vbNewLine & _
		"</table>" & vbNewLine

%>

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

RebelTech
Average Member

USA
613 Posts

Posted - 06 October 2003 :  16:40:06  Show Profile  Visit RebelTech's Homepage  Send RebelTech an ICQ Message
Thank you! works like a charm. I had seen body and html tags in the inc_header.asp and tried that to no avail. Thanks again for your example, I learned something.
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 06 October 2003 :  16:59:32  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Yea just make sure that just like html if the ASP tags %> or <% are open then you have to close them at some point in time on the same page.

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.31 seconds. Powered By: Snitz Forums 2000 Version 3.4.07