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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:26:24+00:00 2026-05-17T16:26:24+00:00

One reason we currently use UpdatePanels for doing our AJAX is because our BL

  • 0

One reason we currently use UpdatePanels for doing our AJAX is because our BL and DA layers pass around the Page.User.Identity for authentication.

Is there a way to access 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-17T16:26:24+00:00Added an answer on May 17, 2026 at 4:26 pm

    Yes, you can get the current user via HttpContext.Current.User. From the MSDN documentation for Page.User:

    This property uses the HttpContext
    object’s User property to determine
    where the request originates.

    As for your broader question, “How can I use jQuery Ajax and PageMethods with instance variables?” The answer is “not directly.”

    No instance of your page is created when executing a page method. (Why do ASP.NET AJAX page methods have to be static? is a great conceptual overview of the differences between normal page operations and static page methods).
    The only way to access instance variables in page methods is to first put the variables into Session during the initial page request – but this is a rather fragile strategy: you’re better off figuring out another way to get the data or values in question.

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

Sidebar

Related Questions

One of the many reason to use FluentNHibernate, the new QueryOver API, and the
Careless use of templates can cause bloat. One way to avoid that bloat is
I'm currently doing some redesign of a website, basically just upgrading it to a
I'm currently doing some oracle sql analysis and often encounter valid sql statement that
I'm currently trying to implement a StopWatch class. The interface is something like: interface
I am currently replacing some home baked task functionality with a new implementation using
This is how the query looks like: (simplified) SELECT * FROM posts WHERE user='37'
I'm currently using the boost threadpool with the number of threads equal to the
How can I unlock or delete a file that is in use, so that
I am trying to build an app where I let my registered user be

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.