Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/05/2002, 17:51
Avatar de vlah
vlah
 
Fecha de Ingreso: enero-2002
Mensajes: 254
Antigüedad: 23 años, 3 meses
Puntos: 0
Intermedio:asp Y Sql

TENGO UN PROBLEMA A LA HORA DE PONER LA CARRERA YA QUE ESE DATO LO JALO DE UNA TABLA CARRERA, COMO LE HAGO PARA DESPLEGARLO YA QUE TENGO UNA TABLA ALUMNO Y AHI TENGO LA CLAVE DE LA CARRERA, Y QUIERO JALAR EL NOMBRE DE LA CARRERA EN BASE A LA CLAVE...


<!--#INCLUDE file="openclose/abrir.asp" -->
<%
nick=session("nick")
if session("nick")="" then
response.redirect "principal.asp"
else
temp2="select * From tblAlumno where IdAlumno ='" &nick&"'"
tabla2.open temp2,conexion,2,3,1
temp3="select * from tblAlumMateria where IdAlumno='"&nick&"'"
tabla3.open temp3,conexion,2,3,1
temp4="Select * from tblMateria"
tabla4.open temp4,conexion,2,3,1
end if
response.buffer = true
Func=Request("Func")
response.addheader "pragma","no-cache"
Response.CacheControl = "Private"
Response.Expires = 0
%>
<html>
<head>
<Title>prueba</title>
</head>
<body>
<%Response.write"Bienvenido: "%>
<%Response.Write session("nick")%>
<BR>
<BR>

<%while not tabla2.eof%>
<table>
<TR>
<td width=33%> NOMBRE :</td>
<TD width=33%><%=tabla2("Nombre")%> </TD>
</TR>
<TR>
<TD width=33%> APELLIDO :</TD>
<TD width=33%><%=tabla2("Apellido")%&g t;</TD>
</TR>
<TR>
<td width=33%> FECHA DE NAC. :</td>
<TD width=33%><%=tabla2("FechaNac")%&g t;</TD>
</TR>
<TR>
<td width=33%> CARRERA :</td>
<TD width=33%><%=tabla2("Carrera")%&gt ;</TD>
</TR>
<TR>
<TD WIDTH="33">EMAIL :</TD>
<TD WIDTH=38%><%=tabla2("E-mail")%></TD>
</TR>
<%tabla2.movenext
wend%>
</table>
<BR>
<table>
<TR>
<td width=33%>MATERIA </td>
<td width=33%>Parcial 1</td>
<TD WIDTH=33%>Parcial 2</TD>
<TD WIDTH=33%>Final</TD>
</TR>
</TABLE>
<BR>
<%while not tabla3.eof%>
<TABLE>
<TR>
<TD width=33%><%=tabla3("IdMateria")%& gt;</TD>
<TD width=33%><%=tabla3("parcial1")%&g t;</TD>
<TD width=33%><%=tabla3("parcial2")%&g t;</TD>
<TD width=33%><%=tabla3("final")%> </TD>
</TR>
<%tabla3.movenext
wend%>
<%while not tabla4.eof%>
<%tabla4.movenext
wend%>