Ver Mensaje Individual
  #6 (permalink)  
Antiguo 13/10/2010, 20:05
Avatar de oscarios
oscarios
 
Fecha de Ingreso: septiembre-2004
Mensajes: 186
Antigüedad: 20 años, 6 meses
Puntos: 2
Respuesta: mensaje cierre de sesion

hola, bueno creo que no he podido ponerlo a funcionar ,, lo que pasa es que de programacion NADA ,,,,,, te muestro el codigo a ver que tengo mal.......que pena!
Código ASP:
Ver original
  1. <%@LANGUAGE="VBSCRIPT"%>
  2. <!--#include file="Connections/xxxxxxxx.asp" -->
  3. <%
  4. Dim Recordset1__MMColParam
  5. Recordset1__MMColParam = "1"
  6. If (Session("MM_Username") <> "") Then
  7.   Recordset1__MMColParam = Session("MM_Username")
  8. End If
  9. %>
  10. <%
  11. Dim Recordset1
  12. Dim Recordset1_cmd
  13. Dim Recordset1_numRows
  14.  
  15. Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
  16. Recordset1_cmd.ActiveConnection = MM_conngdc_STRING
  17. Recordset1_cmd.CommandText = "SELECT nombre FROM usuarios WHERE usuario = ?"
  18. Recordset1_cmd.Prepared = true
  19. Recordset1_cmd.Parameters.Append Recordset1_cmd.CreateParameter("param1", 200, 1, 255, Recordset1__MMColParam) ' adVarChar
  20.  
  21. Set Recordset1 = Recordset1_cmd.Execute
  22. Recordset1_numRows = 0
  23. %>
  24. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  25. <html xmlns="http://www.w3.org/1999/xhtml">
  26. <head>
  27. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  28. <title>Documento sin título</title>
  29. <script language="JavaScript">
  30. function SessionTimeoutAlert(intMilliseconds)
  31. {
  32.     setTimeout("window.focus(); alert('¿Aun estas ahi?.')", intMilliseconds);
  33. }  
  34. </script>
  35. <style type="text/css">
  36. <!--
  37. body {
  38.     background-color: #CCC;
  39.     margin-left: 3px;
  40.     margin-top: 3px;
  41.     margin-right: 3px;
  42.     margin-bottom: 3px;
  43. }
  44. -->
  45. </style></head>
  46.  
  47. <body>
  48. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  49.   <tr>
  50.     <td width="78%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  51.       <tr>
  52.         <td>&nbsp;</td>
  53.         <td>&nbsp;</td>
  54.         <td>&nbsp;</td>
  55.         <td>&nbsp;</td>
  56.         <td>&nbsp;</td>
  57.         <td>&nbsp;</td>
  58.         <td>&nbsp;</td>
  59.         <td>&nbsp;</td>
  60.         <td>&nbsp;</td>
  61.         <td><a href="parametros/parametros.html" target="mainFrame">Parametros<img src="imagen.gif" onload="javascript:MemberSessionTimeoutAlert(900000);"></a></td>
  62.       </tr>
  63.     </table></td>
  64.     <td width="22%" align="right">bienvenido <%=(Recordset1.Fields.Item("nombre").Value)%></td>
  65.   </tr>
  66. </table>
  67. <p>&nbsp;</p>
  68. <p>&nbsp;</p>
  69. </body>
  70. </html>
  71. <%
  72. Recordset1.Close()
  73. Set Recordset1 = Nothing
  74. %>
__________________
oscariosdw