OutFront Forums
     Home    Register     Search      Help      Login    

Sponsors
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

 

Dreamweaver Asp Code

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP, PHP, and Database >> Dreamweaver Asp Code
Page: [1]
 
 
Mav44

 

Posts: 228
Joined: 6/25/2006
Status: offline

 
Dreamweaver Asp Code - 4/10/2009 13:32:25   
I have used the following ASP line in FP for years and it always gave me a new row for mutiple items in my table. I am now trying to make a similar chart in Dreamwever and it wrecks the table when I use this line. Should a be using some other than "TD , TR" like "div" or "Span" ?

<%If counter mod 1 = 0 Then Response.write("</tr><tr>")%>
ou812

 

Posts: 1742
Joined: 1/5/2002
From: San Diego
Status: offline

 
RE: Dreamweaver Asp Code - 4/10/2009 14:39:43   
Dreamweaver shouldn't have anything to do with it. This is getting processed by the server. You're stating to end the row and start another row. I'm guessing the problem is somewhere else in your code. Maybe not closing a TD or something along those lines. Can you provide more?

_____________________________

-brian

Black Holes suck.

EnterpriseDB: Enterprise-class relational database management system
PostgreSQL: The world's most advanced open source database

(in reply to Mav44)
Mav44

 

Posts: 228
Joined: 6/25/2006
Status: offline

 
RE: Dreamweaver Asp Code - 4/10/2009 14:47:18   
Full code for one of the table cells below ---

<tr>
<!--#include file="_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM MyASP_1 WHERE (a_approval = '::a_approval::' AND cat1 = '::cat1::' AND bf_incard = '::bf_incard::') ORDER BY bh_pp1 ASC,c_name ASC"
fp_sDefault="a_approval=y&cat1=entertainp&bf_incard=y"
fp_sNoRecords=""
fp_sDataConn="ridert"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&a_approval=202&c_name=202&be_norwes=202&cat1=202&o_category=202&bf_incard=202&bg_myincard=202&"
fp_iDisplayCols=10
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
counter=0
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<%counter=counter+1%>
<td width="24%" align="left"><font face="Verdana" size="2">
<a href="<%=FP_Field(fp_rs,"o_category")%>.asp">
<%If len(trim(FP_Field(fp_rs,"o_category"))) > 0 Then %>
<%End If%>
<%If len(trim(FP_Field(fp_rs,"c_name"))) > 0 Then %>
<%=FP_Field(fp_rs,"c_name")%></a>
<%End If%>
</font></td>

<%If counter mod 1 = 0 Then Response.write("</tr><tr>")%>
<!--#include file="_fpclass/fpdbrgn2.inc"-->
</tr>

(in reply to ou812)
ou812

 

Posts: 1742
Joined: 1/5/2002
From: San Diego
Status: offline

 
RE: Dreamweaver Asp Code - 4/11/2009 15:21:39   
I'm not a DRW person, but I'm assuming that last include displays further records if they exist. I'm not seeing why it wouldn't work if so. I'm a little puzzled with your MOD logic though. From what I see it would always try and have another set of TR tags since anything MOD 1 is always zero. Or maybe you have it that way for testing? Or if there is only ONE record and there is nothing in the last include to display I can see the table being out of whack because there are no TD tags within the empty TR tags.

Of course, maybe I'm just reading it all wrong too!:)

_____________________________

-brian

Black Holes suck.

EnterpriseDB: Enterprise-class relational database management system
PostgreSQL: The world's most advanced open source database

(in reply to Mav44)
Mav44

 

Posts: 228
Joined: 6/25/2006
Status: offline

 
RE: Dreamweaver Asp Code - 4/13/2009 0:47:50   
I think it is a difference in the way Dreamwever lays out a table vs FP. Using the ("</tr><tr>")%> just added an additional row on the end in Dreamweaver where FP I got another in my same colum. My table is 3 colums across and 10 rows down. with the code above in each block calling out a different return. I went with ("<p>")%> in Dreamweaver and it is working "OK" but dowsn't look as good.

(in reply to ou812)
Page:   [1]

All Forums >> Web Development >> ASP, PHP, and Database >> Dreamweaver Asp Code
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts