Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

ASPNET 2.0 webform login / out problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason Huang - 13 Sep 2007 09:26 GMT
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
Manish Bafna - 13 Sep 2007 11:10 GMT
Hi,
Write below code in page load of FormLogin.aspx:
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Read more about cache at
http://msdn2.microsoft.com/en-us/library/system.web.httpcachepolicy.setcacheabil
ity(vs.71).aspx

Signature

Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.

> Hi,
>
[quoted text clipped - 7 lines]
>
> Jason
Jason Huang - 14 Sep 2007 09:51 GMT
Thanks.
But is it possible to stet the NoCache property to just TextBox Password,
and keep the Account cachen?

"Manish Bafna" <ManishBafna@discussions.microsoft.com> ¼¶¼g©ó¶l¥ó·s»D:F998F278-BE26-4B19-9A88-52EBC4A9993B@microsoft.com...
> Hi,
> Write below code in page load of FormLogin.aspx:
[quoted text clipped - 14 lines]
>>
>> Jason

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.