Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6077755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:45:23+00:00 2026-05-23T10:45:23+00:00

I want the TaskBar object to be hidden when someone is not logged in

  • 0

I want the TaskBar object to be hidden when someone is not logged in

Here’s my code:

if (HttpContext.Current.User.Identity.IsAuthenticated == false){TaskBar.Visible = false;}

This works perfectly in IE and Chrome, but for some reason, the TaskBar still shows up in Firefox when no one is logged in. I tried clearing firefox’s cache, hoping that that was it, but it wasn’t. Is there a more “cross-browser” friendly way of doing this?

[EDIT] The taskbar is a custom user control that I made, and uses no javascript. I just want to set its visibility to false.

[EDIT 2] Here’s the code for the taskbar. Its been edited quite a bit for anonymity, so try and keep that in mind. And there are even more user controls attached to it. I’m not going to post the code for those, because I’m not the one who programmed them.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TaskBar.ascx.cs" Inherits="~.TaskBar" %>

<%@ Register TagPrefix="act" TagName="CallPopup" Src="~/Call.ascx" %>
<%@ Register TagPrefix="act" TagName="EmailPopup" Src="~/Email.ascx" %>
<%@ Register TagPrefix="act" TagName="NotePopup" Src="~/Note.ascx" %>
<%@ Register TagPrefix="act" TagName="SurveyPopup" Src="~/Survey.ascx" %>
<%@ Register TagPrefix="act" TagName="TaskPopup" Src="~/Task.ascx" %>

<style type="text/css">

.navBar
{
    width: 100%;
    height: 45px;
    background-image: url(~/background.jpg);
    background-repeat: repeat-x;
    overflow: hidden;
    text-align: center;
}

.navBar h2
{
    float: left;
    color: White;
    width: 350px;
    text-shadow: 2px 2px 2px #000;
}

.links
{
    float: right;
}

.links a
{
    padding-bottom: 5px;
}

.links img:hover
{
     -moz-opacity:.50; 
     filter:alpha(opacity=50); 
     opacity:.50;
}

</style>

<div class="navBar">
    <h2><asp:Label ID="label" runat="server" Text=""></asp:Label></h2>
    <div class="links">
        <asp:ImageButton runat="server" ID="tasksButton" ImageUrl="~/check.png"  />
        <img src="~/splitter.png" alt="" border="0" />
        <a href="Home" id="homeButton"><img src="~/home.png" alt="" title="Return to the Home Page" border="0" /></a>
        <a href="#" id="callButton"><img src="~/phone.png" alt="" title="Log a Call" border="0" /></a>
        <act:CallPopup ID="pcCall" runat="server" />
        <a href="#" id="emailButton"><img src="~/mail.png" alt="" title="Compose Email" border="0" /></a>
        <act:EmailPopup ID="pcEmail" runat="server" />
        <a href="#" id="noteButton"><img src="~/note.png" alt="" title="Add a Note" border="0" /></a>
        <act:NotePopup ID="pcNote" runat="server" />
        <a href="#" id="newTaskButton"><img src="~/task.png" alt="" title="Add a Task" border="0" /></a>
        <act:TaskPopup ID="pcTask" runat="server" />
    </div>
</div>

[EDIT 3]

Alright, so here’s a bit more on the issue that I just figured out. The way the program is set up is so that users are able to check “Keep Me Logged In”, which the program will then do. So I think the issue is actually that Firefox isn’t letting the user logout. I have tried clicking our Logout button, and it only doesn’t work in Firefox. Maybe that will help push this question forward.

Here’s the code for the logout:

<asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="~/Login.aspx" />

We’re using a basic AnonymousTemplate and LoggedInTemplate system. (I’m not completely sure what all else is needed to describe the login system, sorry…still new at this)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:45:24+00:00Added an answer on May 23, 2026 at 10:45 am

    The issue is a Javascript error elsewhere in the page, and its not allowing the user to click the logout button, therefore no cookies are being cleared or postbacks occuring. I’m closing this question, since it’s no longer relevant.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create an application that user can minimize to taskbar on Windows
How would one go about displaying taskbar notifications? I want to write an app
I am running Windows XP 64 bit. I want to hide the taskbar when
Want to code a key pad for an calculator. What I want to make
I have created a JFrame and want to hide this from the taskbar in
I want to make a script that detects when taskbar icon flashes, and activates
I want to take advantage of the new Windows 7 taskbar functionality in a
I want a program of mine to show up in the taskbar, but still
I want that my window is completely hidden on the startup. No window, no
I want to create a windows interface in ASP.net which include Taskbar, Windows(have option:Maximum,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.