473,473 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ASPNET 2.0 webform login / out problem

Hi,

In my ASPNet 2.0 webform FormLogin.aspx, I have 2 TextBoxes, txtAccount and
txtPassword.
If I login succed, then it will redirect to Form2.aspx.
But the problem comes when I go back from Form2 to FormLogin, the Account
and Password are still kept in the TextBoxes.
How do I prevent this situation?
Thanks for help.
Jason
Sep 13 '07 #1
2 1545
Hi,
Write below code in page load of FormLogin.aspx:
Response.Cache.SetCacheability(HttpCacheability.No Cache);
Read more about cache at
http://msdn2.microsoft.com/en-us/lib...ty(vs.71).aspx
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.

"Jason Huang" wrote:
Hi,

In my ASPNet 2.0 webform FormLogin.aspx, I have 2 TextBoxes, txtAccount and
txtPassword.
If I login succed, then it will redirect to Form2.aspx.
But the problem comes when I go back from Form2 to FormLogin, the Account
and Password are still kept in the TextBoxes.
How do I prevent this situation?
Thanks for help.
Jason
Sep 13 '07 #2
Thanks.
But is it possible to stet the NoCache property to just TextBox Password,
and keep the Account cachen?
"Manish Bafna" <Ma*********@discussions.microsoft.com¼¶¼g©ó¶l¥ó·s »D:F9**********************************@microsoft. com...
Hi,
Write below code in page load of FormLogin.aspx:
Response.Cache.SetCacheability(HttpCacheability.No Cache);
Read more about cache at
http://msdn2.microsoft.com/en-us/lib...ty(vs.71).aspx
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.

"Jason Huang" wrote:
>Hi,

In my ASPNet 2.0 webform FormLogin.aspx, I have 2 TextBoxes, txtAccount
and
txtPassword.
If I login succed, then it will redirect to Form2.aspx.
But the problem comes when I go back from Form2 to FormLogin, the Account
and Password are still kept in the TextBoxes.
How do I prevent this situation?
Thanks for help.
Jason

Sep 14 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mr.KisS | last post by:
Hello all, I'm working with Windows XP PRO SP1, ASP.NET v2 (with Visual Web Dev) and, MS SQL 2005 with a database with Windows Authentication mode. I've an aspx page which must send a query to...
0
by: John Holmes | last post by:
I saw a post in October that related to the problem I'm having and posted something yesterday but never saw it show up, so I'll try again. I read secnet.pdf and gathered from that document that one...
3
by: Kim | last post by:
After installing MSDE2000 on my WIN XP machine, I created the database from Access using the upsizing wizard. Although the tables can be seen from the server explorer, I keep on encountering...
7
by: SK | last post by:
Hi, Would appreciate if anyone could help me on this. Basically my client having few branches across state. And they used Citrix in which to connect to the server side for accessing application...
6
by: Andrew Chalk | last post by:
My application attempts to connect to an SQL Server database as name ASPNET and Login Name SERVERNAME/ASPNET in response to these commands: SqlConnection myConnection = new SqlConnection("Data...
1
by: cashdeskmac | last post by:
My web form accesses a sql server database but I get an error message that I cannot login to the database with the ASPNET limited account. Is there a way to either configure the ASPNET account so...
3
by: Doug | last post by:
Using Visual Studio 2005, SQL Server 2000, and ASP.NET/VB.NET for a Web Application. We have a System DSN using Windows NT authentication defined on the development box to connect to the SQL...
2
by: =?Utf-8?B?SmVmZnJleQ==?= | last post by:
How to configure the IIS, ASPNET userID, Windows or SQL Authentiation, std or integrated security for SQLserver database? The VS.net 2002 web server and SQL Server client are at the same PC, ...
16
by: Mich | last post by:
Hi, i'm building an web application for anonymous users. They can take a look in the website, nothing more. In order to perform other actions, the anonymous user must be logged. So i create an...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.