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

Taking lot of time in loading user control on a web page

Hello,

When I press the button on the web page I am loading the user control
on the web page. This user control is invoking some methods of the
web service. The control on the web page is loaded very soon when
running on the local machine ( measns where the web service is
running). But it is taking lot of
time when loaded on the remote machine. Can anybody please explain me
how to solve this problem?

Thanks in advance.

Regards,
Gouri.
Jun 27 '08 #1
6 1872
Hi Gouri,
It is apparent that when you are trying to access the webservice (sitting on
remote machine) thru your code it is taking time. The way to establish if
this is indeed the case is:

Open your browser and type the Url of the Remote webservice and see how much
time does it take to load. Sometimes it might happen that the first request
would take time but the subsequent requests are served faster as the IIS
caches the results.

Is your remote webservice sitting behind a fire wall?

Let me know if it worked for you.

You can reach me on: jo********@gmail.com

regards,
Joy

"Go************@gmail.com" wrote:
Hello,

When I press the button on the web page I am loading the user control
on the web page. This user control is invoking some methods of the
web service. The control on the web page is loaded very soon when
running on the local machine ( measns where the web service is
running). But it is taking lot of
time when loaded on the remote machine. Can anybody please explain me
how to solve this problem?

Thanks in advance.

Regards,
Gouri.
Jun 27 '08 #2
Hello,

I have opened the remote web service and tested. It is not taking much
time as the control is taking to load on the web page. Can you please
tell me what could be other problem.? Thanks.

Regards,
Gouri.
Jun 27 '08 #3
Hi,
Can you send me the code snippet please? and also answer the following
questions:

1. The web page hosting the control is sitting on different machine than the
web service?

2. Did you try to debug the web page rendering by placing a breakpoint at
the point where the web service is being called?

regards,
Joy

"Go************@gmail.com" wrote:
Hello,

I have opened the remote web service and tested. It is not taking much
time as the control is taking to load on the web page. Can you please
tell me what could be other problem.? Thanks.

Regards,
Gouri.
Jun 27 '08 #4
Hello,

1.The web page hosting the control is sitting on different machine
than the web service.
2. Actually web service call is invoked in the user control( which is
C#.net application) . I am hosting that control on the web page. how
to findout the problem.?

Thanks.

Regards,
Gouri.

Jun 27 '08 #5
Hi,

1. The web page hosting the control is sitting on different machine
than the web service.

2. Actually the web service call is invoked in the control (which
C#.net application). I am loading the control on the web page. So how
to findout what is and where is exactly the problem.

Thanks.

Regards,
Gouri.

Jun 27 '08 #6
Hi Gouri,
It would have been really helpful if you had posted the code (both for
webservice as well as for user control), as then i would have been able to
reproduce the behaviour at my end.

Anyways, i would suggest you to reduce the scope of problem. Do the
following things:
a) Create a sample web application having just one web page. In the code
behind of that page make a call to the webservice ( as you are doing from
within the user control ). Make sure to create this application on the system
that has your current web application with the user control.

b) Then just do a Reponse.Write....for the results returned from Web service
call.

If in this case also you see a latency then we will be sure that we need to
focus in this area, else we will need to decipher your user control
code...from the point it makes the call till the point where it actually
renders itself.

Do let me know.

You can reach me on gtalk on the following mail id: jo********@gmail.com

regards,
Joy

"Go************@gmail.com" wrote:
Hello,

1.The web page hosting the control is sitting on different machine
than the web service.
2. Actually web service call is invoked in the user control( which is
C#.net application) . I am hosting that control on the web page. how
to findout the problem.?

Thanks.

Regards,
Gouri.

Jun 27 '08 #7

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

Similar topics

4
by: Adrian MacNair | last post by:
Hi, I created an image gallery which displays 63 images in a slideshow. The problem is that the show was slow because each image loaded one at a time during the show. No problem right? I just...
1
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a...
0
by: Phl | last post by:
Hi, I am trying to create an webform which loads usercontrols dyanamically. I know exactly what to load for some of these controls but for some, I dont want to load it until the user has press a...
6
by: Steve Booth | last post by:
I have a web form with a button and a placeholder, the button adds a user control to the placeholder (and removes any existing controls). The user control contains a single button. I have done all...
3
by: thomson | last post by:
Hi, I have 5 aspx pages, In one page i have a Compare Validator Control, The four aspx pages are loading fast with similar controls, no code behind, But the page having Compare Validator Control...
0
by: davidr | last post by:
Hi, I have a panel that I load user Control in no problem. The problem arrises when I do a post back on one of these user controls. I have button it does a click event. In this click event I...
0
by: davidr | last post by:
Hi, I been stuck on this for a week or more. So please help! I have a menu were a user can click a button and a user control is loaded into the page. A problem occurs when trying to load a...
0
by: AndySummers | last post by:
Hi We have just re-written a majour asp.net project to use a user control embedded in a web page. The main dll references 3 other custom controls and so to deploy the project I copy the 4 dll's to...
2
by: adiel_g | last post by:
I added a user control to a webform in Asp.net 2.0. I am also adding several other user controls to this webform. Now I am trying to find a way to stop the user controls from loading up when I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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.