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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. simple viewstate question

simple viewstate question

Scheduled Pinned Locked Moved ASP.NET
question
3 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
    hakanaktan
    wrote on last edited by
    #1

    Protected Overrides Function LoadPageStateFromPersistenceMedium() As Object Return Session("ViewState") End Function Protected Overrides Sub SavePageStateToPersistenceMedium(ByVal viewState As Object) Session("ViewState") = viewState RegisterHiddenField("__VIEWSTATE", "") End Sub ---------- By using the code upperside , is my viewstate data encoding, if not do i risk my data while sending? And one more question : is this the fastest way to send huge data?some of customers are crying that they are waiting for minutes to see the data pages ;P --junior coder--

    Z 1 Reply Last reply
    0
    • H hakanaktan

      Protected Overrides Function LoadPageStateFromPersistenceMedium() As Object Return Session("ViewState") End Function Protected Overrides Sub SavePageStateToPersistenceMedium(ByVal viewState As Object) Session("ViewState") = viewState RegisterHiddenField("__VIEWSTATE", "") End Sub ---------- By using the code upperside , is my viewstate data encoding, if not do i risk my data while sending? And one more question : is this the fastest way to send huge data?some of customers are crying that they are waiting for minutes to see the data pages ;P --junior coder--

      Z Offline
      Z Offline
      ZimCoder
      wrote on last edited by
      #2

      First i do not think i fully understand your scenario here besides persiting of data. What exactly is your objective .. perhaps there will be a better suggestion to your problem if this is clear. This most definately the fastest way of elivering data.. as your customers indicate zimcoder

      H 1 Reply Last reply
      0
      • Z ZimCoder

        First i do not think i fully understand your scenario here besides persiting of data. What exactly is your objective .. perhaps there will be a better suggestion to your problem if this is clear. This most definately the fastest way of elivering data.. as your customers indicate zimcoder

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

        I am using this code in my own "viewstate class". in my web page , i am sending too much data by datagrid. It takes too much bandwith and dialup modem users have to wait to see the page. So i want to use viewstate with best performance and my data must be in secure ( hashed or etc.) i tried Losformatter to write data to a file at server but it is slow. Then i want to keep my viewstate at session.It is better but does this method encodes data while sending? i found this code from a forum (http://www.mcse.ms/message1240052.html[^])but i do not know how to use that? Would someone help me? thanx.. --junior coder--

        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