473,394 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

HttpWebRequest Performance Q

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?
Nov 17 '05 #1
3 1246
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.
"George Durzi" <gd****@hotmail.com> wrote in message
news:#J*************@TK2MSFTNGP10.phx.gbl...
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?

Nov 17 '05 #2
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>
----------------------------------------------

"George Durzi" <gd****@hotmail.com> wrote in message
news:OY*************@tk2msftngp13.phx.gbl...
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.
"George Durzi" <gd****@hotmail.com> wrote in message
news:#J*************@TK2MSFTNGP10.phx.gbl...
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?


Nov 17 '05 #3
No idea why I didn't think of that. Thanks for the suggestions.
"John Timney (Microsoft MVP)" <ti*****@despammed.com> wrote in message
news:OC**************@TK2MSFTNGP09.phx.gbl...
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>
----------------------------------------------

"George Durzi" <gd****@hotmail.com> wrote in message
news:OY*************@tk2msftngp13.phx.gbl...
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.
"George Durzi" <gd****@hotmail.com> wrote in message
news:#J*************@TK2MSFTNGP10.phx.gbl...
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?



Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Dan Battagin | last post by:
Is there a known bug with the interaction between the HttpWebRequest and the ThreadPool? I current spawn several HttpWebRequest's using BeginGetResponse, and they work for a while, using worker...
10
by: Gregory A Greenman | last post by:
I'm trying to write a program in vb.net to automate filling out a series of forms on a website. There are three forms I need to fill out in sequence. The first one is urlencoded. My program is...
9
by: Mike Cronin via DotNetMonster.com | last post by:
Hi there, Can anyone tell me what level of encryption is used when making an HTTPS POST request through an instance of the System.Net.HttpWebRequest object? Thanks much in advance! Mike...
1
by: Cliff Harris | last post by:
I am trying to automate a series of form posts on a website. This site requires that my session be kept alive through successive posts (it basically tracks me by a sessionid, and if I get a new...
16
by: thomas peter | last post by:
I am building a precache engine... one that request over 100 pages on an remote server to cache them remotely... can i use the HttpWebRequest and WebResponse classes for this? or must i use the...
1
by: sfoxover | last post by:
Hi, Could someone please give me some suggestions on how to make this class robust. I need to be able to handle around 20 similtanious requests to this class which causes a web browser to...
6
by: Mike Koerner | last post by:
Hi, I am having problems setting the HttpWebRequest Date header. I understand that it is a restricted header and I do receive the "This header must be modified with the appropriate property." ...
3
by: JansenH | last post by:
We have implemented a 'HTTP Post' client in C# that posts Xml documents to a webserver. This is working fine if the post rate is one post for every 20 seconds. But if the post rate is increased to...
1
by: tregewitz | last post by:
I am uploading a zip file using an HttpWebRequest and a PUT operation to Sharepoint (2003) from a Windows Form application. When I upload the same file using the Sharepoint Portal Web UI itself,...
1
by: Proogeren | last post by:
I have a problem with a httpwebrequest that I am creating. The request in itself looks correct but using fiddler I see that a www-authentication header is sent along as well. The code is pasted...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.