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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:36:31+00:00 2026-05-27T07:36:31+00:00

The situation I have an ASP.NET Webform that contains some status information about a

  • 0

The situation

I have an ASP.NET Webform that contains some status information about a users Microsoft Lync 2010 session. In the Page_Load event i registered an event handler that listenes for a Lync session status change event.

Once the event fires, the event handler reacts correctly and does its job: it changes the according text of a specific label. The problem is, the changes are not visible in the front end webpage.

The code

This is a global Lync Client instance, defined in the page.

private LyncClient _lyncClient;

Here I am registering the LyncClient in the Page_Load event.

protected void Page_Load(object sender, EventArgs e)
{
    RegisterLyncClient();
}

I assign the LyncClient instance to the global _lyncClient. After that I register my event listener.

private void RegisterLyncClient()
{
    _lyncClient = LyncClient.GetClient();
    _lyncClient.StateChanged += HandleStateChanged;
}

This function is fired correctly as the Lync Client changes its state. Its visible during Debug mode.

private void HandleStateChanged(object sender, ClientStateChangedEventArgs e)
{
     SetLyncStatus(e.NewState);
}

The labels text is changed correctly (during debug mode). But the changes are not visible in frontend.

private void SetLyncStatus(ClientState lyncState)
{
    lblLyncStatus.Text = lyncState.ToString();
}

Assumption

If I use a button to manually change the status or if I use a timer to check and adjust the status every second, the changes are visible. So I assume the changes made within the HandleStateChanged event handler are not visible, because there is no postback after calling the SetLyncStatus function.

Question

Is it possible to force a postback from an event handler, that is not fired from a users action (e.g. user clicks a button)? It would be perfect, if its possible to call a partial refresh of the label or a defined section.

Any suggestions much appreciated. Thanks!

  • 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-27T07:36:32+00:00Added an answer on May 27, 2026 at 7:36 am

    Before you try to implement any solution try to understand what runs on client what on server. Maybe you have a desktop development background and hence you also need to understand the stateless nature of web. Any changes happening on the server side would not reflect on client side and vice-versa. Once the server has responded to a request it would not automatically communicate status update to client. So a even driven approach would not work in your case. You need to do pings from client side to determine status changes. This pings can be done using AJAX with a predefined periodic interval.

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

Sidebar

Related Questions

Situation:I have an ASP .NET application that will search through docs using Lucene. I
My situation is this: I have an ASP.NET web application that I want to
Here's my situation: I have a UserBadge object in ASP.NET, it contains 3 fields,
Here's the situation : I have an ASP.NET PasswordRecovery ( http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.passwordrecovery.aspx ) control used
I have Asp.Net solution that contains few WCF Service projects. Every time i run
so, here is the situation here. I have 2 asp.net websites + some winform
My Situation: I have 1 asp.net application with both aspx pages AND webservices I
Probably a very basic beginner question. Imagine the following situation: I have an ASP.NET
I have a slightly odd situation. One of my customers has an Asp.net (v2
I have the following situation: Microsoft Report Viewer 2010 is used to display reports

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.