Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Connectionless ??

Connectionless ??

Scheduled Pinned Locked Moved ASP.NET
questioncsharpdatabasedesign
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    HahnTech
    wrote on last edited by
    #1

    I understand that the ADO.NET’s number one advantage is that is it connectionless. Well I’m having some troubles implementing this. This is what I have: An aspx file with a System.Web.UI.WebControles.Calendar and its code behind file. I’m trying to display daily totals on the calendar and so I don’t need the most up to date information all the time; however, every time I click on a cell a post back is fires and the page goes back out the DB. This is way too slow. How can I make it so that the info only loads on an initial login and expires when the session expirers? Ronald Hahn, CNT - Computer Engineering Technologist New Technologies Analyst HahnTech Affiliated With Code Constructors Edmonton, Alberta, Canada Email: rhahn82@telus.net

    C 1 Reply Last reply
    0
    • H HahnTech

      I understand that the ADO.NET’s number one advantage is that is it connectionless. Well I’m having some troubles implementing this. This is what I have: An aspx file with a System.Web.UI.WebControles.Calendar and its code behind file. I’m trying to display daily totals on the calendar and so I don’t need the most up to date information all the time; however, every time I click on a cell a post back is fires and the page goes back out the DB. This is way too slow. How can I make it so that the info only loads on an initial login and expires when the session expirers? Ronald Hahn, CNT - Computer Engineering Technologist New Technologies Analyst HahnTech Affiliated With Code Constructors Edmonton, Alberta, Canada Email: rhahn82@telus.net

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      HahnTech wrote: I’m trying to display daily totals on the calendar and so I don’t need the most up to date information all the time; however, every time I click on a cell a post back is fires and the page goes back out the DB. This is because you have not put your code that connects to the database inside an !IsPostback block. Therefore, every time you post back, the page loads and replaces the data in your viewstate with a fresh copy. in Page_Load if (!IsPostback) { //call method in your data tier. } Christian Graus - Microsoft MVP - C++

      H 1 Reply Last reply
      0
      • C Christian Graus

        HahnTech wrote: I’m trying to display daily totals on the calendar and so I don’t need the most up to date information all the time; however, every time I click on a cell a post back is fires and the page goes back out the DB. This is because you have not put your code that connects to the database inside an !IsPostback block. Therefore, every time you post back, the page loads and replaces the data in your viewstate with a fresh copy. in Page_Load if (!IsPostback) { //call method in your data tier. } Christian Graus - Microsoft MVP - C++

        H Offline
        H Offline
        HahnTech
        wrote on last edited by
        #3

        That just might work! Thanks. This has another question now. Can you point me in the direction of some good Practical literature ie code examples, of an asp.net page life cycle. Ronald Hahn, CNT - Computer Engineering Technologist New Technologies Analyst HahnTech Affiliated With Code Constructors Edmonton, Alberta, Canada Email: rhahn82@telus.net

        C 1 Reply Last reply
        0
        • H HahnTech

          That just might work! Thanks. This has another question now. Can you point me in the direction of some good Practical literature ie code examples, of an asp.net page life cycle. Ronald Hahn, CNT - Computer Engineering Technologist New Technologies Analyst HahnTech Affiliated With Code Constructors Edmonton, Alberta, Canada Email: rhahn82@telus.net

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          HahnTech wrote: Can you point me in the direction of some good Practical literature ie code examples, of an asp.net page life cycle. The BEST book is 'Essential ASP.NET with Examples in C#' by Fritz Onion. It's also pretty cheap. The short version is Page_Init LoadViewState Page_Load Page_PreRender SaveViewState But in ASP.NET 2.0 there are a lot more events to hook into ( I dunno if this is a good thing or not ) Christian Graus - Microsoft MVP - C++

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups