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

  • Home
  • SEARCH
  • 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 6908645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:35:20+00:00 2026-05-27T08:35:20+00:00

I have a ASCX control that sits inside of a CMS that is written

  • 0

I have a ASCX control that sits inside of a CMS that is written in .net, the problem I am running into is that we have pass a variable called fullname in our headers. We have a simple script that reads this variable and then outputs the name in the page. But sometimes some users will get completely random users name (I have verified that they have not logged into that machine which tells me this must be some sort of server side caching going on). I was thinking about using SetCacheability but am not sure if this will cause the entire page to not be cached or just the ascx control that loads on the page. Any ideas on what to do?

        Response.Cache.SetCacheability(HttpCacheability.NoCache);
        if (!String.IsNullOrEmpty(this.UserName))
        {
            lblUsername.Text = Request.ServerVariables["fullname"].ToString();
        }
  • 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-27T08:35:21+00:00Added an answer on May 27, 2026 at 8:35 am

    You can declare an @OutputCache attribute in your ASCX markup and set his properties as Duration="0" VarByParam="None" (documentation).

    Also you can take a look on “Caching portions of an ASP.NET Page” article and “Dynamically Updating Portions of a cached page“.

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

Sidebar

Related Questions

I have an .ascx control inside la page. In that control, I have a
I've written a simple ascx user control called myLight that I programtically add several
I have a custom user control that I made called OrderForm.ascx . I also
I have written a web usercontrol (ascx). Inside, there is a Panel that I
I have an ascx that uses Eval in a repeater like this: <%@ Control
I have two instances of an Address.ascx control in an ASP.NET MVC page. <h1>Shipping
I have an ASP.NET user control (.ascx file). In this user control I want
I have a user control called DashboardUserControl.ascx It has a function: public void setPagination(Boolean
I have a page containing a control called PhoneInfo.ascx. PhoneInfo is dynamically created using
I have a User control(ascx) that has an Update panel. When the page is

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.