none
Error: Not allowed here because it does not extend class "System.Web.UI.Page"

    Question

  • I wanted to make a logout buttom in my LS 2011 webapplication.
    Build the application and copied the logoff.aspx file to the root en the dll file tot the bin folder.
    Get parsor Error Message: denial.logoff is not allowed here because it does not extend class 'System.Web.UI.Page'.
    Any ideas what i'm doing wrong? Thanks for your help!

    logoff.aspx

    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="logoff.aspx.vb" Inherits="denial.logoff" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> </div> </form> </body> </html>

    code behind file logoff.aspx.vb

    Namespace denial Public Class logoff Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load FormsAuthentication.SignOut() Response.Redirect("default.htm") End Sub End Class End Namespace

    • Moved by Mike Feng Monday, May 20, 2013 4:43 AM
    Wednesday, May 15, 2013 8:57 PM

All replies