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. ASP.NET Performace

ASP.NET Performace

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminperformancequestion
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.
  • A Offline
    A Offline
    Albert Pascual
    wrote on last edited by
    #1

    Two questions: 1- I was running a performer to see how long funtions take in my ASP.NET Web App. Shows that some Server.Transfer are really slow! Is it better to use Response.Redirect than Server.Transfer? I would thought that Server.Transfer does not need to go back to the client, so should be faster than Response.Redirect, any idea?? 2 - I am using many DataGrids and normally I use SqlDataReaders or DataTables, when I use DataTables I normally called DataTable.Dispose() after DataGrid.DataBind() so calls the garbage collection. But again looks like calling GC takes a big hit in performance, should I stop using Dispose()?? Ideas?

    D 1 Reply Last reply
    0
    • A Albert Pascual

      Two questions: 1- I was running a performer to see how long funtions take in my ASP.NET Web App. Shows that some Server.Transfer are really slow! Is it better to use Response.Redirect than Server.Transfer? I would thought that Server.Transfer does not need to go back to the client, so should be faster than Response.Redirect, any idea?? 2 - I am using many DataGrids and normally I use SqlDataReaders or DataTables, when I use DataTables I normally called DataTable.Dispose() after DataGrid.DataBind() so calls the garbage collection. But again looks like calling GC takes a big hit in performance, should I stop using Dispose()?? Ideas?

      D Offline
      D Offline
      David Flores
      wrote on last edited by
      #2
      1. Server.Transfer works as a kind of server-side redirect. It terminates the execution of the current page and passes control to the specified page. Unlike Server.Execute, control is not passed back to the caller page. It is more effective than Response.Redirect. However, If you use Server.Transfer to transfer a user to another page, ensure that the currently authenticated user is authorized to access the target page. If you use Server.Transfer to a page that the user is not authorized to view, the page is still processed. Server.Transfer uses a different module to process the page rather than making another request from the server, which would force authorization. Do not use Server.Transfer if security is a concern on the target web page. Use HttpResponse.Redirect instead. p.s. That is the information i read from "Programming Microsoft ASP.NET" and "Improving Web Application Security: Threats and Countermeasures" 2) I never call Dispose...I like ASP decide when to do clean up.
      A 1 Reply Last reply
      0
      • D David Flores
        1. Server.Transfer works as a kind of server-side redirect. It terminates the execution of the current page and passes control to the specified page. Unlike Server.Execute, control is not passed back to the caller page. It is more effective than Response.Redirect. However, If you use Server.Transfer to transfer a user to another page, ensure that the currently authenticated user is authorized to access the target page. If you use Server.Transfer to a page that the user is not authorized to view, the page is still processed. Server.Transfer uses a different module to process the page rather than making another request from the server, which would force authorization. Do not use Server.Transfer if security is a concern on the target web page. Use HttpResponse.Redirect instead. p.s. That is the information i read from "Programming Microsoft ASP.NET" and "Improving Web Application Security: Threats and Countermeasures" 2) I never call Dispose...I like ASP decide when to do clean up.
        A Offline
        A Offline
        Albert Pascual
        wrote on last edited by
        #3

        That's what I thought, Server.Transfer was better than Response.Redirect, however my trace and the program ANTS don't agree with that statement, shows me the Server.Transfer takes longer than Response.Redirect + loading the page. Pretty confusing !! Thanks Albert

        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