14. maj 2002 - 09:06
Der er
9 kommentarer
CSS og databasekald kan ikke vises samtidig
Hjææææælp.
Jeg har lavet en række databasekald i asp som virker fint. Jeg har også lavet et css som virker som det skal. Siderne skal ligge som del af et frameset.
Her er så det mystiske: Når jeg browser siden uden for frameset'et vises resultaterne af databasekaldene men ikke mit stylesheet. Browser jeg samme side som del af framset'et vises mit stylesheet men ikke databasekaldene.
Er der nogen som har et bud på hvad der går galt?
Det kan måske være til hjælp at jeg arbejder i Ultradev4...?
Her er koden, hvor jeg har lagt stylesheet'et ind i <head> - som sagt databasekaldene virker udenfor frameset'et!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/TPHR.asp" -->
<%
set familieret = Server.CreateObject("ADODB.Recordset")
familieret.ActiveConnection = MM_TPHR_STRING
familieret.Source = "SELECT person.fornamn,person.efternamn,person.initialer, p_stodtext.beskrivning as 'titel' FROM person,p_stodtext WHERE (p_stodtext.kolumn_namn='titel') and person.titel=p_stodtext.varde and (tjanstestalle LIKE 'FG16') ORDER BY fornamn asc"
familieret.CursorType = 0
familieret.CursorLocation = 2
familieret.LockType = 3
familieret.Open()
familieret_numRows = 0
%>
<%
Dim listetest__MMColParam
listetest__MMColParam = "ole"
if (Request("MM_EmptyValue") <> "") then listetest__MMColParam = Request("MM_EmptyValue")
%>
<%
set listetest = Server.CreateObject("ADODB.Recordset")
listetest.ActiveConnection = MM_TPHR_STRING
listetest.Source = "SELECT ANSTNR, FORNAMN FROM dbo.PERSON WHERE FORNAMN = '" + Replace(listetest__MMColParam, "'", "''") + "' ORDER BY NAMN ASC"
listetest.CursorType = 0
listetest.CursorLocation = 2
listetest.LockType = 3
listetest.Open()
listetest_numRows = 0
%>
<%
Dim Repeat1__numRows
Repeat1__numRows = -1
Dim Repeat1__index
Repeat1__index = 0
familieret_numRows = familieret_numRows + Repeat1__numRows
%>
<%
Dim Repeat2__numRows
Repeat2__numRows = -1
Dim Repeat2__index
Repeat2__index = 0
familieret_numRows = familieret_numRows + Repeat2__numRows
%>
<head>
<style>
body { scrollbar-face-color: #FFFFFF; scrollbar-shadow-color: #025285;
scrollbar-highlight-color: #FFFFFF; scrollbar-3dlight-color: #025285;
scrollbar-darkshadow-color: #025285; scrollbar-track-color: #FFFFFF;
scrollbar-arrow-color: #025285}
.links { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; color: #005185; line-height: 13px; text-decoration: underline}
.links A:link { color: #005185; text-decoration: underline}
.links A:visited { color: #005185; text-decoration: underline}
.links A:active { color: #CC0033; text-decoration: underline}
.links A:hover { color: #CC0033; text-decoration: underline}
.rodlinks { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; color: #CC0033; line-height: 13px; text-decoration: none}
.rodlinks A:link { color: #CC0033; text-decoration: none}
.rodlinks A:visited { color: #CC0033; text-decoration: none}
.rodlinks A:active { color: #005185; text-decoration: none}
.rodlinks A:hover { color: #005185; text-decoration: none}
.overskrift { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; color: #025285; line-height: 16px; font-weight: bold}
.overskriftrod { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; color: #CC0033; line-height: 16px; font-weight: bold}
.text { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; color: #000000; line-height: 13px; text-decoration: none}
.text A:link { color: #000000; text-decoration: none}
.text A:visited { color: #000000; text-decoration: none}
.text A:active { color: #005185; text-decoration: none}
.text A:hover { color: #005185; text-decoration: none}
.stext { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-style: normal; color: #000000; line-height: 13px; text-decoration: none}
.stext A:link { color: #020536; text-decoration: underline}
.stext A:visited { color: #020536; text-decoration: underline}
.stext A:active { color: #F2C119; text-decoration: underline}
.stext A:hover { color: #F2C119; text-decoration: underline}
.blatext { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #025285; line-height: 12px; font-style: normal; text-decoration: none}
.blatext A:link { color: #020536; text-decoration: none}
.blatext A:visited { color: #020536; text-decoration: none}
.blatext A:active { color: #F2C119; text-decoration: none}
.blatext A:hover { color: #F2C119; text-decoration: none}
.printtxtsmall { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8px; color: #000000; line-height: 14px; font-style: normal}
.rodstreg { border: solid; border-color: #CC0033; border-right-width: 0pt; border-bottom-width: 2px; border-left-width: 0pt; border-top-width: 0pt}
.knap { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; color: #020536; background-color: #E1E1E1; border: none; border-bottom:solid 1px #025285; border-left:solid 1px #025285; border-right:solid 1px #025285; border-top:solid 1px #025285}
.felt { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #020536; background-color: #FFFFFF; border: none; border-bottom:solid 1px #025285; border-left:solid 1px #025285; border-right:solid 1px #025285; border-top:solid 1px #025285}
</style>
<title>Profil for faggruppen Familieret/menneskeret/dødsboer.</title>
</head>
<body>
<Table Width="100%" cellpadding="0">
<tr>
<td valign="Top" Width="70%"><BR>
<img src="_DK/_DKILL/dot.gif" width="36" height="1" border="0" align="left"><img src="_DK/_DKILL/hlw_Familie-menneskeretmv.gif" width="468" height="36" border="0" align="left">
<p clear="left"><BR>
<BR>
<P><span class="text">Faggruppen har endnu ikke afleveret en profil.<br>
<br>
Faggruppen har følgende medlemmer</span><br>
<br>
<table width="100%" border="0" class="text">
<tbody>
<%
While ((Repeat1__numRows <> 0) AND (NOT familieret.EOF))
%>
<tr>
<td height="13">
<%=(familieret.Fields.Item("fornamn").Value)%> <%=(familieret.Fields.Item("efternamn").Value)%> ( <%=(familieret.Fields.Item("initialer").Value)%> ), <font size="-1"><i><%=(familieret.Fields.Item("titel").Value)%></i></font> </td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
familieret.MoveNext()
Wend
%>
</tbody>
</table>
<br>
<br>
<span class="text">TITEL2.SQL ER DEN GODE...<br>
</span><br>
</td>
<td valign="Top" Width="30%"><BR>
<UL>
<LI CLASS ="blatext">Idéer?</li>
</UL>
<P CLASS ="text">Har du en idé til indhold?<BR>
Kontakt <B><a href="mailto:louise.dickinson@bechbruundragsted.com?subject=Idé til intranet" onMouseOver="window.status='Skriv til Louise Dickinson'; return true;" onMouseOut="window.status=''; return true;">Louise
Dickinson</a></B>.</p>
</td>
</tr>
</table>
</body>
</html>
<%
familieret.Close()
%>
<%
listetest.Close()
%>