HttpWebRequest Performance Q

  • Thread starter Thread starter George Durzi
  • Start date Start date
G

George Durzi

I'm using exchange WebDAV to retrieve a the Xml of user's contact list, then
convert it to a DataSet, then display it in a DataGrid on my webform. The
problem is that because I'm going over HTTP, the operation can take up to 15
seconds for people with many contacts in their contact lists.

I'd like to do one of two things:

- Show some "processing" verbage while the Xml is being fetched and
converted into a DataSet. PROBLEM: I have yet to see a good example of this
being done in codebehind.

- Store the DataSet in a Session variable. The first hit would be slow, but
subsequent hits use the DataSet in the Session

Any thoughts or recommendations?
 
I implemented the Session idea, and am getting great results with it. My
only concern at this point is carrying a relatively big DataSet in
SessionState.
 
Why not put it in the cache, thats what its designed for.
--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
----------------------------------------------
 
Back
Top