登录asp.net页面时如何使用cookie. [英] How to use cookie when I login the asp.net page.

查看:71
本文介绍了登录asp.net页面时如何使用cookie.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,

登录asp.net页面时如何使用cookie.


Cookie存储在本地系统中,并在页面重新加载后自动获取.

示例:用户名:
密码:

当我输入用户名并自动获取密码时
如何编写代码?

通过mohan.

Dear Sir,

How to use cookie when I login the asp.net page.


cookie stored in local system and get automatically after page reloaded.

Example:UserName:
Password:

When i username typed and automatically get password
How to write code?

By mohan.

推荐答案

请参阅CP文章

Cookies-in-ASP-NET

为什么不尝试googl,它会提供更多结果
Google搜索结果
see CP Article

Cookies-in-ASP-NET

why not you tried googl,It gives more results
Google results


Google是一个很好的起点:一个非常快速的搜索"Cookies c#"将这两个作为顶部链接:
代码:编写Cookie(Visual C#) [ ^ ]
代码:读取Cookie(Visual C#) [ ^ ]

请尝试至少自己进行基础研究,而不是浪费您的时间和我们的时间.
Google is a good place to start: a very quick search "Cookies c#" gave these two as the top links:
Code: Writing a Cookie (Visual C#)[^]
Code: Reading a Cookie (Visual C#)[^]

Please try to do at least basic research yourself, instead of wasting your time and ours.


这篇关于登录asp.net页面时如何使用cookie.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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