如何在asp.net c中使用简历进行临时链接下载# [英] how make temp link download with resume in asp.net c#

查看:139
本文介绍了如何在asp.net c中使用简历进行临时链接下载#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何在asp.net中使用简历创建临时链接下载,例如2天后使用过期链接

i使用此:


how can i create temporary link download with resume in asp.net with expire link after for example 2 days
i use this:

Response.ContentType = "application/octet-stream";
               Response.AppendHeader("Content-Disposition", "attachment;filename=" + "12.exe");
           Response.TransmitFile(Server.MapPath("~/test/12.exe"));



但它没有简历和临时链接



tnx


but it's don't have resume and temp link

tnx

推荐答案

根据我的说法,您可以执行以下步骤:



1.创建一个包含列的表:

- url:保存你的临时链接

- startdate:这是效果日期

- 到期:它是到期日

2.在您的代码中,您应该检查当前日期是否大于到期日期,然后临时链接无效。



希望能帮到你!
According to me, you can do steps as following:

1. Create a table with columns:
- url: save your temp link
- startdate: it is the effect date
- expire: it is the expiration date
2. In your code behind, then you should check if the current date greater than expire date, then the temp link is invalid.

Hope that help you!


感谢您的帮助

对我有用
thanks for your help
that was useful for me


这篇关于如何在asp.net c中使用简历进行临时链接下载#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆