Solo un'altro aiutino, nella pagina 'articolo' mancano i tag head, devo inserirli subito dopo il primo blocco di codice asp giusto?
dopo l'end select?
posto il codice
Grazie, so che nn ci vuole nulla a provare, mi chiedo però se sia una procedura correttacodice:<% 'no security checking %> <% '**************************************************************************************** '** Copyright Notice '** '** Techno Dreams - www.t-dreams.com '** Mohamad Al-Karbi '** '** All copyright notices must remain intacked in the scripts '**************************************************************************************** Response.expires = 0 Response.expiresabsolute = Now() - 1 Response.addHeader "pragma", "no-cache" Response.addHeader "cache-control", "private" Response.CacheControl = "no-cache" %> <% response.buffer = true 'get key key = request.querystring("key") if key="" or isnull(key) then key=request.form("key") end if if key="" or isnull(key) then response.redirect "default.asp.asp" 'get action a=request.form("a") if a="" or isnull(a) then a="I" 'display with input box end if ' Open Connection to the database set conn = Server.CreateObject("ADODB.Connection") conn.Open xDb_Conn_Str Select Case a Case "I": ' Get a record to display tkey = key strsql = "SELECT * FROM [accouncements1] WHERE [ID]=" & tkey set rs = Server.CreateObject("ADODB.Recordset") rs.Open strsql, conn If rs.EOF Then Response.Clear Response.Redirect "default.asp" Else rs.MoveFirst End If ' Get the field contents x_Title = rs("Title") x_DetailedNotes = rs("DetailedNotes") x_date = rs("date") rs.Close Set rs = Nothing End Select %> <p align="center" style="margin-top: 0"> Our Recent News </p> <p align="center" style="margin-bottom: 0"><font size="-1"> Torna alla pagina precedente</font></p> <p align="center" style="margin-top: 0; margin-bottom: 0"></p> <div align="center"> <center> <table border="0" cellpadding="5" bgcolor="#FFFFFF" width="750" style="border: 1px solid #336699; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; border-collapse:collapse" bordercolor="#111111" cellspacing="0"> <tr> <td bgcolor="#F5F5F5" style="font-family: Arial; font-size: 10pt" width="85%"><font size="-1"><% response.write x_Title %></font></td> <td bgcolor="#F5F5F5" style="font-family: Arial; font-size: 10pt" align="center" width="15%"><font color="#800000"><% response.write x_Date %></td> </tr> <tr> <td bgcolor="#F5F5F5" colspan="2"> <% Execute IncludeVariables(x_DetailedNotes) %> </td> </tr> </table> </center> </div>![]()

Rispondi quotando