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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:56:09+00:00 2026-05-13T19:56:09+00:00

Yet another question. So now my EventReceiver and its logic is working just fine.

  • 0

Yet another question.

So now my EventReceiver and its logic is working just fine. Except for one thing.

Basically it queries the whole list through CAML queries, and then passes the result to a DataTable object, and later on to a DataRow object…

Like all, in test environment, it works perfectly, but in production…

What happens is that the column I need updated gets update but not shown immediately. The item column receives the value I want, but it doesn’t show at first refresh, you have to refresh the page again, then it appears…

The only difference is that in teste env. my list has like, 200 records, and in production, it has almost 5000 records.

Some questions:

  • Is there a way to define how many records you want? In CAML or in the DataTable object? Something like “SELECT TOP 100 … “
  • If not, is there a way to make the refresh process stop and wait for the code execution?

Some Info:

  • It’s WSS 3.0, and the event I’m intercepting is ItemAdded, which explains the refresh not waiting for my code.

Oh and considering changing to the ItemAdding event would be a little bit of a problem, because I need to capture the ID of the record, which is not yet available in ItemAdding because the list item has not been committed to the database yet.

Thanks in advance.

  • 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-13T19:56:09+00:00Added an answer on May 13, 2026 at 7:56 pm

    After searching a lot, I ended up moving my code to the ItemAdding event, which is synchronous and will finish executing before SharePoint loads its page.

    Even after I limited the result rows to 5, it would still load the page without the value I wanted to show.


    Also, if you are considering capturing the value from a field that uses calculated value, and has a formula in it, be careful, because at least in my example, SharePoint didn’t resolve the formula by event execution, so the field with the calculated value would always return null.

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

Sidebar

Related Questions

Yet again, my teacher was unable to answer my question. I knew who may
Better yet, how can I make My Computer always open in Explorer as well?
Anybody found yet a good web site architecture using linq to sql? Any help
I run Jetty6 yet gladly place Apache in the front if needs be. I
This is not yet particularly programing related but, I am very interested in how
MySQL has this incredibly useful yet proprietary REPLACE INTO SQL Command. Can this easily
Since Rails is not multithreaded (yet), it seems like a threaded web framework would
If I have a subclass that has yet to implement a function provided by
I am encountering very infrequent yet annoying SQL deadlocks on a .NET 2.0 webapp
I haven't written any code yet, but I've encountered a similar problem before. Hopefully

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.