Fixed help files.
This commit is contained in:
commit
b8f912cc79
1543 changed files with 395123 additions and 0 deletions
34
WebApplication/Error.aspx.cs
Normal file
34
WebApplication/Error.aspx.cs
Normal file
|
@ -0,0 +1,34 @@
|
|||
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
|
||||
namespace ScrewTurn.Wiki {
|
||||
|
||||
public partial class Error : BasePage {
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e) {
|
||||
Page.Title = Properties.Messages.ErrorTitle + " - " + Settings.WikiTitle;
|
||||
|
||||
Exception ex = Session["LastError"] as Exception;
|
||||
if(ex != null && SessionFacade.LoginKey != null &&
|
||||
AdminMaster.CanManageConfiguration(SessionFacade.GetCurrentUsername(), SessionFacade.GetCurrentGroupNames())) {
|
||||
|
||||
lblException.Text = ex.ToString();
|
||||
}
|
||||
else {
|
||||
pnlException.Visible = false;
|
||||
}
|
||||
Session["LastError"] = null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue