• 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

    • Occasionally crazy tyrants occupy palaces using swords.  
    • Switch to another OS if you're into tinfoil hat mentality, or just uninstall the app. Oh, wait, even after uninstalling it, can Microsoft still be looking at everything? We'll never know, so, yeah, that's that. If you use Windows, you need to live with those options.
    • Minecraft Chase the Skies update and Vibrant Visuals graphics overhaul lands next week by Pulasthi Ariyasinghe The second major game update of the year for Minecraft is almost here. Mojang today announced that its next Game Drop, Chase the Skies, is landing on June 17. Alongside it, the highly anticipated graphics overhaul, dubbed Vibrant Visuals, will be available too, making the day a rather big occasion for Minecraft fans. The Chase the Skies update has a large number of gameplay features and content, but one of the biggest is the expansion of the Ghast. Now, players will be able to find Happy Ghasts as a tameable mob, letting up to five players ride them on journeys across the skies. To get one, players will have to find small, dehydrated Ghasts near fossil structures in the Nether, then bring it to the overworld and feed it plenty of water. It is also possible to craft dried Ghasts from Nether materials. Other features of this update include a handy player locator bar, better leads functionality, craftable saddles, a new music disc, and more. As for the Vibrant Visuals upgrade, Mojang is touting a visual refresh that lets players witness how lights and shadows affect the Minecraft world. "Fly high with your happy ghast to watch the sunrise reflect on the rippling ocean, make art with shifting shadows, descend into dark depths, or simply sit back and enjoy the vivid beauty of each biome," says the studio. "With updated in-game visuals you’ll see how light and shadow transform the Overworld – water reflects, forests become shaded, fog drifts, and waterfalls glimmer in the light." The currently supported devices for Vibrant Visuals include Xbox Series X|S, Xbox One, PlayStation 4, PlayStation 5, PC, as well as Android (Android: Adreno 640, Mali-G68, Mali-G77, or Xclipse 530 or higher) and iOS (A12 or M1 or higher.)   Unfortunately, the Vibrant Visuals upgrade will only be available on the Bedrock Edition of Minecraft, at least for now. Mojang has said that it plans to bring the visual overhaul to the Java Edition of Minecraft at a later date, but no information or release window has been announced just yet.
    • Once people get use to the square-ish case, they'll probably switch the display to square as well.
  • Recent Achievements

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

    1. 1
      +primortal
      560
    2. 2
      ATLien_0
      255
    3. 3
      +Edouard
      163
    4. 4
      +FloatingFatMan
      158
    5. 5
      Michael Scrip
      110
  • Tell a friend

    Love Neowin? Tell a friend!