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 8448273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:22:56+00:00 2026-06-10T10:22:56+00:00

I am using ASP.NET 4.0 WebApplication project The following will save user name to

  • 0

I am using ASP.NET 4.0 WebApplication project

The following will save user name to my current.profile

System.Web.HttpContext.Current.Profile["UserName"] = userName

I would like to add a new profile named Company with the value ‘MyCompany’ to all users.
It should be somthing like that:

for all users....
{
    System.Web.HttpContext["SpecificUser"].Profile["Company"] = "MyCompany"
}

How can i do it?

  • 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-06-10T10:22:57+00:00Added an answer on June 10, 2026 at 10:22 am

    You cannot access everyone’s HttpContext, however, you could write it to each profile, assuming you know the user’s profile user ID. If you don’t have their user ID’s handy, you may want to write it to the database directly via a stored procedure. The main point is you need to write it to the profile DB in order to share it for all users.

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

Sidebar

Related Questions

I am using an ASP.Net Web Application project. I have a user control which
I'm trying to start a new ASP.NET Web Application Project using Visual Studio 2008.
I am using SignalR in an ASP.Net Web Application project and am having issues.
I am using AspNetSqlMembershipProvider in my ASP .Net 4 web application project. I have
I'm working on a web application project using ASP.NET MVC3 and database in SQL
We are using an ASP.NET web site project with dynamic compilation, and recently moved
I have created a new MVC2 project using the ASP.NET MVC2 Web Application, which
I'm using TableProfileProvider to use ASP.NET profile system in an n-layer architecture. The UI
I have a arraylist in my web application project in asp.net/C#/VS2008 and I'm using
I have the following project solution: There is a ASP.NET MVC Web Application where

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.