登录内容的asp.net代码下载内容之前 [英] asp.net code of Login Before the downloading the contents

查看:48
本文介绍了登录内容的asp.net代码下载内容之前的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用Visual Studio 2005,当我单击下载按钮时,我需要asp.net代码,它提示我登录然后下载内容.任何人都可以为我提供代码.

谢谢与问候
Vinayaka

Hi,

i am using visual studio 2005 i need the asp.net code for when i click on download button it prompt me to login then download the contents.Can anyone provide me the code.

Thanks & Regards
Vinayaka

推荐答案

步骤:
1.保持登录的用户会话
2.在让任何人下载之前,请检查会话是否有价值.如果有,请按预期进行下载
3.如果会话没有值,则表示用户尚未登录.
4.由于会话为空,提示登录.
5.用户登录后,允许该人下载并跟踪下载数据(例如谁下载,何时下载等)

试试吧!
Steps:
1. Keep a logged in user session
2. Before letting anyone download, check if session has some value. If it has, let the download move ahead as expected
3. If the session has no value, it means the user is not logged in.
4. Prompt for the login since session is empty.
5. Once the user logs in, allow the person to download and also track the download data (like who downloaded, when, etc)

Try!


这篇关于登录内容的asp.net代码下载内容之前的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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