Solved the issue with suspending and activating a user account.
This commit is contained in:
parent
f97b0a260b
commit
6089d72741
1 changed files with 3 additions and 4 deletions
|
@ -50,6 +50,7 @@ namespace WebsitePanel.Portal
|
|||
DataSet myPackages;
|
||||
int currentPackage;
|
||||
int currentUser;
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
@ -74,7 +75,6 @@ namespace WebsitePanel.Portal
|
|||
if(ddlPackageSelect.Items.Count > 0) {
|
||||
Session["currentPackage"] = ddlPackageSelect.Items[0].Value;
|
||||
Session["currentUser"] = PanelSecurity.SelectedUserId;
|
||||
currentPackage = int.Parse(Session["currentPackage"].ToString());
|
||||
}
|
||||
} else {
|
||||
currentPackage = int.Parse(Session["currentPackage"].ToString());
|
||||
|
@ -84,14 +84,13 @@ namespace WebsitePanel.Portal
|
|||
}
|
||||
// USER
|
||||
UserPackagesPanel.Visible = true;
|
||||
if(!IsPostBack)
|
||||
{
|
||||
if(ddlPackageSelect.UniqueID != Page.Request.Params["__EVENTTARGET"]) {
|
||||
if(ddlPackageSelect.Items.Count == 0) {
|
||||
litEmptyList.Text = GetLocalizedString("gvPackages.Empty");
|
||||
EmptyPackagesList.Visible = true;
|
||||
} else {
|
||||
ddlPackageSelect.Visible = true;
|
||||
myPackages = new PackagesHelper().GetMyPackage(currentPackage);
|
||||
myPackages = new PackagesHelper().GetMyPackage(int.Parse(Session["currentPackage"].ToString()));
|
||||
PackagesList.DataSource = myPackages;
|
||||
PackagesList.DataBind();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue