How to create a LogOut Button for LightSwitch Application when i using Forms Authentication to LogIn RRS feed

  • Question

  • Hi,

    I'm still facing a LogOut button when i click the button i prompt out the coding from LogOff.aspx file to my webpage.

    For example my default web site is http://srv-kk/testing

    When i success to LogIn my application and then i try to click the button LogOut, the webpage link change to http://srv-kk/testing/LogOut.aspx and display the coding ask below.

    "Namespace LightSwitchApplication Public Partial Class Barcode_Detail Inherits System.Web.UI.Page Protected Sub Page_Load(sender As Object, e As EventArgs) FormsAuthentication.SignOut() Response.Redirect("default.htm") End Sub End Class End Namespace"

    I already follow the forum How-To: Create a Logout Button For LightSwitch Web Apps but still got a problem. It is i have mistake some step? Any people have a screenshot for step to create LogOut Button? Please help. Thanks!

    I also confuse at step 2 from forum  How-To: Create a Logout Button For LightSwitch Web Apps. That's the bin folder is located at where?

    Please advise. Thanks!

    Friday, March 15, 2013 8:59 AM

All replies

  • Tracy - if you're following the walk through in the post above - the "bin" folder is that of your published application.  So you would publish your LightSwitch application and then copy the aspx file to the root and the dll to the bin folder off the root.

    Does that help?

    Thursday, March 28, 2013 9:48 PM