473,385 Members | 1,445 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,385 software developers and data experts.

ASp.Net Performance

I have a Dynamic Page which alow user to choose User-control from a
DropDownList like in DotNetNuke then i load it using
LoadControl() method. But i suffer from slow Performance, I was use
ObjectDatasource but i replaced it by Async code to call my webservice...
I'm sure it's not a problem of my webservice since i used it before and it
work so fine.
I did alot of work to implement Async but it didn't help much

I think to remove all code from Page_Load and Page_PreRender and cache
controls to avoid using reflections then after Get the Control from cache I
call my Methods to fill data and do all logic. So is it going to help
inperformance??

If i added Register tags for all my userControl in my Default page, is it
improve performance??
thanx
Aug 6 '06 #1
2 1537
Async to a webservice from an ASP.NET page isn't really going to buy you
anything since you still need to wait for the callback to return in order to
get any result, so the effect is the same as a synchronous call. Have you
tried putting caching on the controls?
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Islamegy®" wrote:
I have a Dynamic Page which alow user to choose User-control from a
DropDownList like in DotNetNuke then i load it using
LoadControl() method. But i suffer from slow Performance, I was use
ObjectDatasource but i replaced it by Async code to call my webservice...
I'm sure it's not a problem of my webservice since i used it before and it
work so fine.
I did alot of work to implement Async but it didn't help much

I think to remove all code from Page_Load and Page_PreRender and cache
controls to avoid using reflections then after Get the Control from cache I
call my Methods to fill data and do all logic. So is it going to help
inperformance??

If i added Register tags for all my userControl in my Default page, is it
improve performance??
thanx
Aug 6 '06 #2
do u mean cache the output?? it's dynamic controls i can't cache it this
way.. does it help to move events From Page_Load() to MyPageLoad() and cache
the control..
So when i get the control from cache and fire MyPageLoad() to load data...

Since i think the delay in the LoadControl() not calling the webservice
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:4A**********************************@microsof t.com...
Async to a webservice from an ASP.NET page isn't really going to buy you
anything since you still need to wait for the callback to return in order
to
get any result, so the effect is the same as a synchronous call. Have you
tried putting caching on the controls?
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Islamegy®" wrote:
>I have a Dynamic Page which alow user to choose User-control from a
DropDownList like in DotNetNuke then i load it using
LoadControl() method. But i suffer from slow Performance, I was use
ObjectDatasource but i replaced it by Async code to call my webservice...
I'm sure it's not a problem of my webservice since i used it before and
it
work so fine.
I did alot of work to implement Async but it didn't help much

I think to remove all code from Page_Load and Page_PreRender and cache
controls to avoid using reflections then after Get the Control from cache
I
call my Methods to fill data and do all logic. So is it going to help
inperformance??

If i added Register tags for all my userControl in my Default page, is it
improve performance??
thanx

Aug 6 '06 #3

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

Similar topics

25
by: Brian Patterson | last post by:
I have noticed in the book of words that hasattr works by calling getattr and raising an exception if no such attribute exists. If I need the value in any case, am I better off using getattr...
12
by: Fred | last post by:
Has anyone a link or any information comparing c and c++ as far as execution speed is concerned? Signal Processing algorithms would be welcome... Thanks Fred
12
by: serge | last post by:
I have an SP that is big, huge, 700-800 lines. I am not an expert but I need to figure out every possible way that I can improve the performance speed of this SP. In the next couple of weeks I...
6
by: teedilo | last post by:
We have an application with a SQL Server 2000 back end that is fairly database intensive -- lots of fairly frequent queries, inserts, updates -- the gamut. The application does not make use of...
5
by: Scott | last post by:
I have a customer that had developed an Access97 application to track their business information. The application grew significantly and they used the Upsizing Wizard to move the tables to SQL...
115
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of a static array within a performance-critical...
13
by: bjarne | last post by:
Willy Denoyette wrote; > ... it > was not the intention of StrousTrup to the achieve the level of efficiency > of C when he invented C++, ... Ahmmm. It was my aim to match the performance...
13
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make...
7
by: Michael D. Ober | last post by:
When calling Enqueue, the internal array may need to be reallocated. My question is by how much? In the old MFC array classes, you could tell MFC how many additional elements to add to the array...
1
by: jvn | last post by:
I am experiencing a particular problem with performance counters. I have created a set of classes, that uses System.Diagnostics.PerformanceCounter to increment custom performance counters (using...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.