• 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

    • A 10% IPC boost is underwhelming for what is supposed to be a major generational leap. Unless it's accompanied by higher clock speeds, or the IPC boost is greater than 10% in games, I'm not sure that it will be enough to compete with Zen 5 X3D, let alone Zen 6 X3D for gaming. Single-core performance is super important and cannot be compensated with more cores, whereas the reverse is true, you can compensate for fewer cores with better single-core performance.
    • Been happy with Windows 11 myself even since first release in 2021, sure it hasn't always been perfect, but nothing is per say.. Issues i did have was minor ones, which is normal with any OS really. I still use Windows 10 at times on my unsupported Gaming Laptop, and i find myself using the Windows 11 Desktop more. Eventually replacing Gaming Laptop with a Windows 11 Compatible one somehow, someway this year or possibly next year at the latest, but its gonna happen--(May save all my Bing reward points except the 1000 to have extended support for 10) then work on getting quality Replacement hard)
    • Geez, this is dumb. I use my laptop sometimes in the dark when doing astrophotography to control my astro-PC... this explains why I have to keep entering my PIN when logging back in. So stupid. I can't see the keyboard in the dark, and I can't have lights everywhere to light it up because everything is very light sensitive (including my eyes!).
    • Naturally. I don't care about brand loyalty at all as it's all about price/performance/reliability etc (even what RejZoR said below is a great point to). basically bang-for-the-buck. because at the end of the day... one wants the cheapest possible price to maintain a certain minimum level of performance (or thereabouts). because generally after a certain point with CPU and GPU's the price starts to sky rocket without that much difference in performance where it really matters. p.s. historically I have bought more Intel CPU's and NVIDIA GPU's but I have had some AMD CPU's and one AMD GPU.
    • Both of these companies as well as Qualcomm and Apple need competition. Otherwise, they just coast. I don't prefer macOS, though I like some of Apple's hardware, but if anyone needs competition, it is Apple. Their prices are already outrageous and they need to have a reason to produce good hardware and at least keep prices remotely reasonable. (It is criminal what they charge for RAM upgrades especially.) Qualcomm needs to push AMD and Intel not to be so sloppy with the performance/efficiency aspect. Granted, AMD has been doing quite well in this respect considering they are not an ARM architecture. I personally want to have more options that truly compete with Macbook Air and Macbook Pro's on the Windows side. It is difficult to achieve what Apple does since they control the entire stack and that is fundamentally different for Windows PCs other than maybe Microsoft Surface PCs.
  • Recent Achievements

    • Week One Done
      Hartej earned a badge
      Week One Done
    • One Year In
      TsunadeMama earned a badge
      One Year In
    • Week One Done
      shaheen earned a badge
      Week One Done
    • Dedicated
      Cole Multipass earned a badge
      Dedicated
    • Week One Done
      Alexander 001 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      565
    2. 2
      +FloatingFatMan
      182
    3. 3
      ATLien_0
      175
    4. 4
      Skyfrog
      111
    5. 5
      Som
      106
  • Tell a friend

    Love Neowin? Tell a friend!