Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
ASPProtect.NET Authentication Add-On Support Archives (Info Locked Info Locked)
 CJWSoft Support Info : ASPProtect.NET Authentication Add-On Support Archives
Subject Info: Log Out A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
kpdelvalle
New User
New User


Joined: August/24/2006
Online Status: Offline
Info: 3
Added: August/24/2006 at 2:16pm | IP Logged Quote kpdelvalle

I noticed there's a different login page with the .NET add-on. I've got that working fine. For logging out though, is the log out process with .NET different from the Classic ASP version as well or does it use the Classic ASP log out pages? I noticed a Sign Out button in the testprotect.aspx page. Is that what should be used instead of the Classic log out process?

--Keita
Back to Top View kpdelvalle's Profile Search for other info by kpdelvalle
 
cwilliams
Admin Group
Admin Group
Avatar
CJWSoft Web Software Developer

Joined: April/06/2004
Online Status: Offline
Info: 1769
Added: August/24/2006 at 2:18pm | IP Logged Quote cwilliams

It's completely different and that is why I provided an example of doing it on the "textprotect.aspx" page.

ASP.NET is a compeletely different animal... everything is different and more complex

__________________

Best Regards, Christopher Williams www.CJWSoft.com
Back to Top View cwilliams's Profile Search for other info by cwilliams Visit cwilliams's Homepage
 
tonypearce
New User
New User


Joined: July/28/2006
Online Status: Offline
Info: 5
Added: September/19/2006 at 3:11pm | IP Logged Quote tonypearce

Hi,

Do you have a version of the textprotect.aspx that will run in C#?

I just need the log out button section (the script section and button part)

Thanks for any assistance in this.

Tony 

Back to Top View tonypearce's Profile Search for other info by tonypearce
 
cwilliams
Admin Group
Admin Group
Avatar
CJWSoft Web Software Developer

Joined: April/06/2004
Online Status: Offline
Info: 1769
Added: September/19/2006 at 4:06pm | IP Logged Quote cwilliams

Sorry, I do not..

I am sure the code is quite similar though..

Try some of the online vb to c# converters or ask the folks in the micrsoft newsgroups for assistance converting the code

It's not a lot of code so it should be fairly simple to convert.. I just am not very familar with c# as I do not use it very often.  I will try to look this week and see if I can figure it out for you though.

__________________

Best Regards, Christopher Williams www.CJWSoft.com
Back to Top View cwilliams's Profile Search for other info by cwilliams Visit cwilliams's Homepage
 
tonypearce
New User
New User


Joined: July/28/2006
Online Status: Offline
Info: 5
Added: September/20/2006 at 3:23am | IP Logged Quote tonypearce

Thanks, if I get this working I'll post it back here for others to use

Back to Top View tonypearce's Profile Search for other info by tonypearce
 
tonypearce
New User
New User


Joined: July/28/2006
Online Status: Offline
Info: 5
Added: September/20/2006 at 9:58am | IP Logged Quote tonypearce

Guess most people will just laugh at this, but I got stuck and I worked out the answer.

This is the replacement code for "textprotect.aspx" if using C# instead of VB, just replace the script code with this:

<script runat="server">
public
void Signout_Click(object sender, EventArgs args)
{
FormsAuthentication.SignOut();
Session.Abandon();
Response.Redirect(
"*******.aspx");
}
</script>

This works fine for the button code below:

<asp:button id="SignoutButton" onclick="Signout_Click" runat="server" text="Log Out" Font-Size="Smaller" BackColor="Tomato"></asp:button>

Hope this helps anyone trying to logout on a C# page.

Tony

Back to Top View tonypearce's Profile Search for other info by tonypearce
 
cwilliams
Admin Group
Admin Group
Avatar
CJWSoft Web Software Developer

Joined: April/06/2004
Online Status: Offline
Info: 1769
Added: September/20/2006 at 1:59pm | IP Logged Quote cwilliams

excellent job tony..

__________________

Best Regards, Christopher Williams www.CJWSoft.com
Back to Top View cwilliams's Profile Search for other info by cwilliams Visit cwilliams's Homepage
 

Sorry, you can NOT post info.
This info has been locked by a info administrator.

  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area


Active Server Pages help tutorial how to ASP Help ASP Tutorials ASP Programming ASP Code - ASP Free CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.powerasp.com,www.aspclassifieds.com,www.aspphotogallery.com,www.codewanker.com