求助:怎样实现下载简历页面功能(ASP语言)?

huxi2009tang 2010-05-05 07:21:10
我有一个求职招聘网站,是asp+sql server做的,其中单位可以预览求职者的简历页面,但缺少一个简历下载功能,准备在简历页面下方加一个“下载简历”按钮,可以将求职者的简历下载成.doc格式保存到电脑里。但不知道代码怎么写。
~~希望知道或懂的人帮助一下~~

我的简历页面person.asp代码如下:

<!--#include file="conn/conn.asp"-->
<!-- #include file="conn/index.css"-->
<% uid=request("uid")
set rs=server.createobject("adodb.recordset")
sql1="update person set click=click+1 where pname='"&uid&"'"
rs.open sql1,conn,1,1
sql2="select * from person where pname='"&uid&"' and pzw<>'""'"
rs.open sql2,conn,1,1 %>
<% if rs.eof or rs.bof then
response.write"<SCRIPT language=JavaScript>alert('对不起,该用户不存在或已被删除!');"
response.write"javascript:history.go(-1);</SCRIPT>"
response.End
end if %>
<html>
<head>
<title><%=rs("pxm")%>详细信息</title>
</head>
<div align="center">
<center>
<table border="2" cellpadding="0" cellspacing="0" width="390" height="18" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td height="19" bgcolor="#C6CEDE" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#FFFFFF" valign="bottom" colspan="2" width="384">
<p align="center">=== 个人求职简历 ===</td>
</tr>
<tr>
<td height="19" valign="bottom" width="176"> 姓名:<%=rs("pxm")%></td>
</center>

<td height="19" valign="bottom" width="206">
<p align="right">点击数:<%=rs("click")%> </p>
</td>
</tr>
<center>
<tr>
<td height="19" valign="bottom" bgcolor="#EBEEF3" colspan="2" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#FFFFFF" width="384"> 个人基本资料
------------------------------------------------></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 性别:<%=rs("psex")%> 出生年月:<%=rs("pdate")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384"> 民族:<%=rs("pmz")%> 政治面貌:<%=rs("pzzmm")%></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 户籍所在地:<%=rs("pjg")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384"> 最高教育程度:<%=rs("pxl")%></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 学  位:<%=rs("pxw")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384"> 专  业:<%=rs("pzy")%></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384">毕业院校:<%=rs("pbyyx")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#EBEEF3" colspan="2" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#FFFFFF" width="384"> 希望工作条件—联系信息
--------------------------------------></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 求职类型:<%=rs("pqzlx")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384"> 应聘岗位:<%=rs("pzw")%></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 希望工作地点:<%=rs("pgzdd")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384"> 薪金要求:<%if rs("pgz")="面议" then response.write"面议" else response.write"月薪["&rs("pgz")&"]RMB" end if%></td>
</tr>
<% if rs("potheryq")<>"无其他要求" then%>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 其他要求:</td>
</tr>
<tr>
<td height="3" valign="top" bgcolor="#00006A" colspan="2" width="384">
</td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="379" align="right">
<tr>
<td width="377">    <%=rs("potheryq")%></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td height="3" valign="top" bgcolor="#00006A" colspan="2" width="384">
</td>
</tr>
<%end if%>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 联系人:<%=rs("pxm")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384"> 联系电话:<%=rs("psjhm")%></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 家庭电话号码:<%=rs("pjthm")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384"> E-mail:<a href="mailto:<%=rs("pmail")%>"><%=rs("pmail")%></a></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> QQ号码:<%=rs("pqq")%></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" bgcolor="#F3F3F3" width="384"> 个人主页:<a href="<%=rs("pnet")%>"><%=rs("pnet")%></a></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 联系地址:<%=rs("plxaddress")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#EBEEF3" colspan="2" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#FFFFFF" width="384"> 个人主要特长-相关工作经历
-----------------------------------></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 外语特长:<%=rs("pyysp")%> 等级:<%=rs("pyylevel")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384"> 普通话程度:<%=rs("ppth")%> 计算机能力:<%=rs("pclevel")%></td>
</tr>
<% if rs("ptc")<>"无其他特长" then%>
<tr>
<td height="19" valign="bottom" bgcolor="#FFFFFF" colspan="2" width="384"> 平时业余:</td>
</tr>
<tr>
<td height="3" valign="top" bgcolor="#00006A" colspan="2" width="384">
</td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="379" align="right">
<tr>
<td width="377">个人特长:<%=rs("ptc")%></td>
</tr>

</table>
</div>
</td>
</tr>
<tr>
<td height="3" valign="top" bgcolor="#00006A" colspan="2" width="384">
</td>
</tr>
</center>
<%end if%>
<tr>
<td height="19" valign="bottom" width="176"> 详细工作经历:</td>
<td height="19" valign="bottom" width="206">
<p align="right">相关工作经验:<%=rs("pgzy")%>年  </p>
</td>
</tr>
<tr>
<td height="3" valign="top" bgcolor="#00006A" colspan="2" width="384">
</td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="379" align="right">
<tr>
<td width="377">    <%=rs("pgzjl")%></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td height="3" valign="top" bgcolor="#00006A" colspan="2" width="384">
</td>
</tr>
<% if session("cuid")<>"" then%>
<tr>
<td height="24" valign="bottom" colspan="2" width="384">
<p align="center">[<a href="company/addfav.asp?fav=<%=rs("pname")%>">添加到收藏夹</a>]
[<a href="company/sendmail.asp?rid=<%=rs("pname")%>">发送站内信件</a>]</td>
</tr>
<%end if%>
</table>
</div>
<br>
<CENTER>【<a href="javascript:history.go(-1)">返回</a>】</CENTER>
</html>

...全文
88 点赞 收藏 回复
写回复
回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复

还没有回复,快来抢沙发~

相关推荐
发帖
ASP
创建于2007-09-28

2.8w+

社区成员

ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
申请成为版主
帖子事件
创建了帖子
2010-05-05 07:21
社区公告
暂无公告