27. marts 2001 - 21:45
Der er
17 kommentarer og 1 løsning
billeder/asp/acces?
Hvad gør jeg galt? Se uddrag af min fil. Meningen med det hele er, at når et bestemt sprog er valgt (ligger som et tal i acces) skal der vises et flag. Jeg kan godt få vist tallet men flaget kommer ikke frem? <% dim sti select case RS(\"Sprog\") case 1 sti=\"/billeder/forside/denmark.gif\" case 2 sti=\"/billeder/forside/Sweden.gif\" case 3 sti=\"/billeder/forside/Norway.gif\" case 4 sti=\"/billeder/forside/unitedkingdom.gif\" case 5 sti=\"/billeder/forside/spain.gif\" end select%> <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><%RS=(\"sprog\")%><img src=\"\"& sti &\"\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\">
Annonceindlæg fra Cognizant
Agentic AI kræver mere end teknologi
De fleste virksomheder har efterhånden bevist, at AI virker.
Pilotprojekter leverer resultater. Medarbejdere bruger generative AI-værktøjer. Nye use cases dukker op på tværs af organisationen.
27. marts 2001 - 21:53
#1
Hvordan ser den genererede HTML kode ud??
27. marts 2001 - 21:56
#2
Hej torben Forstår ikke helt hvad du mener. Selv tror jeg fejlen ligger her: <%RS=(\"sprog\")%><img src=\"\"& sti &\"\"> Hvis jeg kun skriver <%RS(\"sprog\")%> vises tallet fra acces tabellen, men jeg vil gerne have mit billede på istedet.
27. marts 2001 - 21:57
#3
Er det dette du mener? <%@ LANGUAGE=\"VBSCRIPT\" %> <% Option Explicit %> <!-- #INCLUDE VIRTUAL=\"/adovbs.inc\" --> <% Dim profil, Conn, RS profil = Request.QueryString(\"navn\") Set Conn = Server.CreateObject(\"ADODB.Connection\") conn.Open Application(\"database\") Set RS = Server.CreateObject(\"ADODB.Recordset\") RS.Open \"SELECT * FROM TBruger WHERE Brugernavn=\'\"& profil &\"\'\", Conn %> <% dim sti select case RS(\"Sprog\") case 1 sti=\"/billeder/forside/denmark.gif\" case 2 sti=\"/billeder/forside/Sweden.gif\" case 3 sti=\"/billeder/forside/Norway.gif\" case 4 sti=\"/billeder/forside/unitedkingdom.gif\" case 5 sti=\"/billeder/forside/spain.gif\" end select%> <html> <head>
27. marts 2001 - 21:58
#4
Prøv at ændre de to af \"\'erne til plinger ....><img src=\'\"& sti &\"\'>
27. marts 2001 - 22:01
#5
<% select case RS(\"Sprog\") case 1 %> <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><img src=\"/billeder/forside/denmark.gif\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><% case 2 <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><img src=\"/billeder/forside/Sweden.gif\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><% case 3 osv...
27. marts 2001 - 22:22
#7
%20 er jo mellemrum... prøv at lave stien/billedey uden mellemrum
27. marts 2001 - 22:24
#8
eller måske ...src=\'\"& \'sti\' &\"\'>
27. marts 2001 - 22:43
#9
Desværre ingen af delene virker..Suk
27. marts 2001 - 22:46
#10
Det er vel ikke fordi der mangler <%img src...?
27. marts 2001 - 22:57
#11
virker mit heller ikke?
27. marts 2001 - 23:04
#12
Key.. Jeg kan ikke finde ud af hvor jeg skal placere dette og derefter henvise? Beklager jeg er nybegynder
27. marts 2001 - 23:27
#13
<% select case RS(\"Sprog\") case 1 %> <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><img src=\"/billeder/forside/denmark.gif\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><% case 2 <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><img src=\"/billeder/forside/Sweden.gif\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><% case 3 <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><img src=\"/billeder/forside/Norway.gif\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><% case 4 <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><img src=\"/billeder/forside/Unitedkingdom.gif\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><% case 5 <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><img src=\"/billeder/forside/spain.gif\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><% end select%> dette skal erstatte alt det du skrev først i spørgsmål...
27. marts 2001 - 23:28
#14
Jeg lægger lige hele scriptet ind i håb om hjælp <%@ LANGUAGE=\"VBSCRIPT\" %> <% Option Explicit %> <!-- #INCLUDE VIRTUAL=\"/adovbs.inc\" --> <% Dim profil, Conn, RS, sprog profil = Request.QueryString(\"navn\") Set Conn = Server.CreateObject(\"ADODB.Connection\") conn.Open Application(\"database\") Set RS = Server.CreateObject(\"ADODB.Recordset\") RS.Open \"SELECT * FROM TBruger WHERE Brugernavn=\'\"& profil &\"\'\", Conn %> <% dim sti select case RS(\"sprog\") case 1 sti=\"/billeder/forside/denmark.gif\" case 2 sti=\"/billeder/forside/Sweden.gif\" case 3 sti=\"/billeder/forside/Norway.gif\" case 4 sti=\"/billeder/forside/unitedkingdom.gif\" case 5 sti=\"/billeder/forside/spain.gif\" end select%> <html> <head> <LINK href=\"/main.css\" rel=\"stylesheet\" type=\"text/css\"> <title>[ ]</title> </head> <body> <table border=\"0\" width=\"635\" > <tr><td width=\"115\" valign=\"top\" align=\"middle\"> <!-- #INCLUDE VIRTUAL=\"/inc/leftmenu.asp\" --> </td> <td width=\"100%\" valign=\"top\"> <!-- Her er det reele indhold af siden. --> <table align=\"center\" border=\"0\" width=\"604\" cellspacing=\"0\" bgcolor=\"#FCEDB3\"> <% while NOT RS.EOF %> <tr><td width=\"670\"> <table border=\"0\" width=\"618\" cellspacing=\"0\" height=\"452\" cellpadding=\"0\"> <tr> <td width=\"36\" height=\"21\"></td> <td width=\"406\" height=\"21\" colspan=\"2\"></td> <td width=\"109\" height=\"21\"></td> <td width=\"42\" height=\"21\"></td> </tr> <tr> <td width=\"36\" height=\"21\"> </td> <td width=\"406\" height=\"21\" colspan=\"2\"> </td> <td width=\"109\" height=\"21\"> </td> <td width=\"42\" height=\"21\"> </td> </tr> <tr> <td width=\"36\" height=\"30\" ></td> <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><img src=\'\"&\'sti\'&\"\'><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><%=RS(\"Fornavn\")%> <%=RS(\"Efternavn\")%></font></b></td> <td width=\"115\" valign=\"top\" height=\"30\" bgcolor=\"#18949C\"><div align=\"right\"> </div> </td> <td width=\"42\" height=\"30\"> </td> </tr> <tr> <td width=\"36\" height=\"1\" > </td> <td width=\"406\" colspan=\"2\" height=\"1\" valign=\"bottom\"><font face=\"Arial\" size=\"2\"><b>Lidt om mig:</b></font></td> <td width=\"115\" rowspan=\"4\" valign=\"top\" height=\"8\"><img src=\"/billeder/editors/editor2.jpg\" width=\"115px\" height=\"141px\" </div border=\"0\"> </td> <td width=\"42\" height=\"1\"> </td> </tr> <tr> <td width=\"36\" height=\"1\" ></td> <td width=\"408\" valign=\"top\" colspan=\"2\" height=\"1\"> <p align=\"left\"><font face=\"Arial\" size=\"2\"><%=RS(\"CV\")%></font></p> </td> <td width=\"42\" height=\"1\"></td> </tr> <tr> <td width=\"36\" height=\"1\" > </td> <td width=\"408\" valign=\"top\" colspan=\"2\" height=\"1\"></td> <td width=\"42\" height=\"1\"> </td> </tr> <tr> <td width=\"36\" height=\"1\"></td> <td width=\"406\" colspan=\"2\" height=\"1\"></td> <td width=\"42\" height=\"1\"></td> </tr> <tr> <td width=\"36\" height=\"24\" ></td> <td width=\"103\" bordercolorlight=\"#18949C\" height=\"24\"> <table border=\"1\" width=\"100%\" bordercolorlight=\"#FCEDB3\" cellspacing=\"0\" bgcolor=\"#18949C\"> <tr> <td width=\"100%\"> <p align=\"center\"><a href=\"mailto:<%=RS(\"Email\")%>\"><img border=\"0\" src=\"seprof2.gif\"></a></td> </tr> </table> </td> <td width=\"303\" height=\"24\"></td> <td width=\"115\" height=\"24\" valign=\"top\"> <p align=\"center\"></td> <td width=\"42\" height=\"24\"></td> </tr> <tr> <td width=\"36\" height=\"21\"></td> <td width=\"406\" height=\"21\" ></td> <td width=\"109\" height=\"21\" ></td> <td width=\"42\" height=\"21\"></td> </tr> <% Dim omraade, SQLFag, RSFag omraade = RS(\"Fagomraade\") Set RSFag = Server.CreateObject(\"ADODB.Recordset\") SQLFag = \"SELECT * FROM TFagomraade WHERE ID=\" & omraade RSFag.Open(SQLFag), Conn %> <tr> <td width=\"36\" height=\"44\"></td> <td width=\"500\" height=\"44\" colspan=\"3\"> <table border=\"1\" width=\"114%\" bordercolorlight=\"#18949C\"> <tr> <td width=\"50%\" bgcolor=\"#18949C\"><font face=\"Arial\" size=\"2\" color=\"#FFFFFF\">Fagområde:<b> <br><%=RSFag(\"Fagomraade\")%></b></font></td> <% Dim spe, SQLSpe, RSSpe spe = RS(\"Speciale\") Set RSSpe = Server.CreateObject(\"ADODB.Recordset\") SQLSpe = \"SELECT * FROM TSpeciale WHERE ID=\" & spe RSSpe.Open(SQLSpe), Conn %> <td width=\"50%\" bgcolor=\"#18949C\"><font face=\"Arial\" size=\"2\" color=\"#FFFFFF\">Specialeområde:<b> <br><%=RSSpe(\"Speciale\")%></b></font></td> </tr> </table> <font face=\"Arial\" size=\"2\"></font></td> <td width=\"42\" height=\"44\"></td> </tr> <tr> <td width=\"36\" height=\"21\"></td> <td width=\"406\" height=\"21\" colspan=\"2\"></td> <td width=\"109\" height=\"21\"></td> <td width=\"42\" height=\"21\"></td> </tr> <tr> <td width=\"36\" height=\"66\"></td> <td width=\"493\" height=\"66\" colspan=\"3\"> <table border=\"1\" width=\"116%\" bordercolorlight=\"#18949C\"> <tr> <td width=\"50%\" bgcolor=\"#18949C\" align=\"left\"><b><font face=\"Arial\" size=\"2\" color=\"#FFFFFF\">Mine bidrag til VidendelingsBanken:</font></b> <p> </td> <td width=\"50%\" valign=\"top\" bgcolor=\"#18949C\" align=\"left\"><b><font face=\"Arial\" size=\"2\" color=\"#FFFFFF\">Diskussioner som jeg deltager i:</font></b> <p> </td> </tr> </table> </td> <td width=\"42\" height=\"66\"></td> </tr> <tr> <td width=\"36\" height=\"21\"></td> <td width=\"493\" height=\"21\" colspan=\"3\"></td> <td width=\"42\" height=\"21\"></td> </tr> <tr> <td width=\"36\" height=\"21\"></td> <td width=\"406\" height=\"21\" colspan=\"2\"></td> <td width=\"109\" height=\"21\"></td> <td width=\"42\" height=\"21\"></td> </tr> <tr> <td width=\"36\" height=\"21\"></td> <td width=\"406\" height=\"21\" colspan=\"2\"></td> <td width=\"109\" height=\"21\"></td> <td width=\"42\" height=\"21\"></td> </tr> <tr> <td width=\"36\" height=\"21\"></td> <td width=\"406\" height=\"21\" colspan=\"2\"></td> <td width=\"109\" height=\"21\"></td> <td width=\"42\" height=\"21\"></td> </tr> <tr> <td width=\"36\" height=\"21\"></td> <td width=\"406\" height=\"21\" colspan=\"2\"></td> <td width=\"109\" height=\"21\"></td> <td width=\"42\" height=\"21\"></td> </tr> <tr> <td width=\"36\" height=\"21\"></td> <td width=\"406\" height=\"21\" colspan=\"2\"></td> <td width=\"109\" height=\"21\"></td> <td width=\"42\" height=\"21\"></td> </tr> <tr> <td width=\"36\" height=\"21\"></td> <td width=\"406\" height=\"21\" colspan=\"2\"></td> <td width=\"109\" height=\"21\"></td> <td width=\"42\" height=\"21\"></td> </tr> <tr> <td width=\"36\" height=\"21\"></td> <td width=\"406\" height=\"21\" colspan=\"2\"></td> <td width=\"109\" height=\"21\"></td> <td width=\"42\" height=\"21\"></td> </tr> <tr> <td width=\"36\" height=\"21\"></td> <td width=\"406\" height=\"21\" colspan=\"2\"></td> <td width=\"109\" height=\"21\"></td> <td width=\"42\" height=\"21\"></td> </tr> <tr> <td width=\"36\" height=\"21\"></td> <td width=\"406\" height=\"21\" colspan=\"2\"></td> <td width=\"109\" height=\"21\"></td> <td width=\"42\" height=\"21\"></td> </tr> <tr> <td width=\"36\" height=\"21\"></td> <td width=\"406\" height=\"21\" colspan=\"2\"></td> <td width=\"109\" height=\"21\"></td> <td width=\"42\" height=\"21\"></td> </tr> <tr> <td width=\"36\" height=\"21\"></td> <td width=\"406\" height=\"21\" colspan=\"2\"></td> <td width=\"109\" height=\"21\"></td> <td width=\"42\" height=\"21\"></td> </tr> <tr> <td width=\"36\" height=\"21\"></td> <td width=\"406\" height=\"21\" colspan=\"2\"></td> <td width=\"109\" height=\"21\"></td> <td width=\"42\" height=\"21\"></td> </tr> <tr> <td width=\"36\" height=\"21\"></td> <td width=\"406\" height=\"21\" colspan=\"2\"></td> <td width=\"109\" height=\"21\"></td> <td width=\"42\" height=\"21\"></td> </tr> <tr> <td width=\"36\" height=\"21\"></td> <td width=\"406\" height=\"21\" colspan=\"2\"></td> <td width=\"109\" height=\"21\"></td> <td width=\"42\" height=\"21\"></td> </tr> </table> </tr> <% RS.Movenext Wend RS.Close Conn.Close Set RS = NOTHING Set Conn = NOTHING %> <!-- Slut på indhold af \"body\" sektionen --> </table> </body>
27. marts 2001 - 23:38
#15
det var det godt nok en underlig opbygning... men prøv at fjener din case i toppen og i stedet indsætte det jeg foreslog efter: <td width=\"36\" height=\"1\" ></td> <td width=\"408\" valign=\"top\" colspan=\"2\" height=\"1\"> <p align=\"left\"><font face=\"Arial\" size=\"2\"><%=RS(\"CV\")%></font></p> </td>
28. marts 2001 - 17:40
#16
Hej Key Mangler der ikke nogle <% eller %> i dit script: <% select case RS(\"Sprog\") case 1 %> <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><img src=\"/billeder/forside/denmark.gif\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><% case 2 <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><img src=\"/billeder/forside/Sweden.gif\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><% case 3 <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><img src=\"/billeder/forside/Norway.gif\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><% case 4 <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><img src=\"/billeder/forside/Unitedkingdom.gif\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><% case 5 <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><img src=\"/billeder/forside/spain.gif\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><% end select%>
28. marts 2001 - 18:37
#17
jo egentlig... <% select case RS(\"Sprog\") case 1 %> <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><img src=\"/billeder/forside/denmark.gif\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><% case 2 %> <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><img src=\"/billeder/forside/Sweden.gif\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><% case 3 %> <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><img src=\"/billeder/forside/Norway.gif\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><% case 4 %> <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><img src=\"/billeder/forside/Unitedkingdom.gif\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><% case 5 %> <td bgcolor=\"#18949C\" width=\"406\" height=\"30\" colspan=\"2\"><img src=\"/billeder/forside/spain.gif\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><% end select%>
28. marts 2001 - 20:34
#18
Mange tak for al din hjælp - det virkede
Kurser inden for grundlæggende programmering