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<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/xxxxxxxx.asp" -->
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
If (Session("MM_Username") <> "") Then
Recordset1__MMColParam = Session("MM_Username")
End If
%>
<%
Dim Recordset1
Dim Recordset1_cmd
Dim Recordset1_numRows
Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
Recordset1_cmd.ActiveConnection = MM_conngdc_STRING
Recordset1_cmd.CommandText = "SELECT nombre FROM usuarios WHERE usuario = ?"
Recordset1_cmd.Prepared = true
Recordset1_cmd.Parameters.Append Recordset1_cmd.CreateParameter("param1", 200, 1, 255, Recordset1__MMColParam) ' adVarChar
Set Recordset1 = Recordset1_cmd.Execute
Recordset1_numRows = 0
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<script language="JavaScript">
function SessionTimeoutAlert(intMilliseconds)
{
setTimeout("window.focus(); alert('¿Aun estas ahi?.')", intMilliseconds);
}
</script>
<style type="text/css">
<!--
body {
background-color: #CCC;
margin-left: 3px;
margin-top: 3px;
margin-right: 3px;
margin-bottom: 3px;
}
-->
</style></head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="78%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><a href="parametros/parametros.html" target="mainFrame">Parametros<img src="imagen.gif" onload="javascript:MemberSessionTimeoutAlert(900000);"></a></td>
</tr>
</table></td>
<td width="22%" align="right">bienvenido <%=(Recordset1.Fields.Item("nombre").Value)%></td>
</tr>
</table>
<p> </p>
<p> </p>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>