• 0

[ASP.NET & VB]


Question

Hi guys I have a question. I'm working on a website using asp.net and vb. I want to put a graph on the front page that updates everytime the page is refreshed. I looked into crystal reports, but Im a bit worried. I need to have make the website as if there may be a large load on it at some point. I dont think it would be good to be hitting that database so many times.

Does anyone have any suggestions? I thought maybe a text file with the data might work.

Any suggestions would be greatly appreciated! Thanks!

Link to comment
https://www.neowin.net/forum/topic/437179-aspnet-vb/
Share on other sites

6 answers to this question

Recommended Posts

  • 0
  WildARMs said:

Hi guys I have a question. I'm working on a website using asp.net and vb. I want to put a graph on the front page that updates everytime the page is refreshed. I looked into crystal reports, but Im a bit worried. I need to have make the website as if there may be a large load on it at some point. I dont think it would be good to be hitting that database so many times.

Does anyone have any suggestions? I thought maybe a text file with the data might work.

Any suggestions would be greatly appreciated! Thanks!

Does the data the graph represents change a lot? If not, use the global cache object to cache the DataSet. In ASP.NET 2.0, you can set a database dependency on the cache, so when the database updates, the cache is invalidated and refreshed. Rebind the graph to the cached dataset on each new page load(a.k.a. Not Page.IsPostBack = True). If you're not using 2.0, you'll have to set a timed dependency on the cache to refresh it.

It may behoove you to enable ViewState on the graph so you don't rebind on every postback. If the graph is heavy and viewstate isn't an option, then rebinding on each postback should be cheap using the cached data.

Link to comment
https://www.neowin.net/forum/topic/437179-aspnet-vb/#findComment-587253993
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Perfect. It needs an endgame (assume the handover to Kirk) and to do that properly it needs an end date
    • Aryeh thank you ever so much. That's a perfect response. Lots of information about this new Thunderbolt technology. Thank you ever so much. I have indeed ordered an MSI Thunderbolt M4 8K so it should go well with my MSI MAG B760. Again thank you for such a detailed response. Kind regards.
    • Sadly, no, until someone gets killed by one. Are they better now when they meet another self drive car? A few years ago, I read that if they met another self drive car at a junction, they would both wait for the other to move, so not move at all. I doubt very much if they will come here where I live for years, to be honest, as I said before, we don't even have Uber here. City is too small for them maybe,
    • Anker announces recall of "More than One Million" power banks, here's how to check by Sayan Sen Anker has announced that it is recalling "more than a million" power banks as they are potentially very dangerous due to burn and fire hazards. Both Anker as well as the CPSC (Consumer Product Safety Commission) have released guidance and advisories on how to check if the power bank you are using is affected and how to proceed further if that is the case. First up, the affected model is the PowerCore 10000 power bank (Model: A1263) and CPSC notes that "Anker has received 19 reports of fires and explosions," which "includes two reports of minor burn injuries not requiring medical attention and 11 reports of property damage totaling over $60,700." Anker explains how you can identify the affected model. It writes: After checking and confirming whether your unit is eligible for the recall, Anker has recommended that you "stop using it immediately" and fill the form which provides you with either a free replacement Anker Power Bank (10K, 22.5W) (Model A1388) or a $30 gift card if replacements are back ordered, which is possible at the moment as it is a large scale recall with over a million affected units. You can find the recall form at this link on Anker's website and the announcement posts linked below. You can find the detailed instructions there. Source: Anker, CPSC
  • Recent Achievements

    • One Month Later
      Orpheus13 earned a badge
      One Month Later
    • Week One Done
      Orpheus13 earned a badge
      Week One Done
    • One Year In
      Orpheus13 earned a badge
      One Year In
    • Week One Done
      serfegyed earned a badge
      Week One Done
    • Week One Done
      fashionuae earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      526
    2. 2
      ATLien_0
      264
    3. 3
      +FloatingFatMan
      205
    4. 4
      +Edouard
      168
    5. 5
      Xenon
      122
  • Tell a friend

    Love Neowin? Tell a friend!