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

aspx is not updated when web service is running

VMI
I'm calling a web service from my aspx and I want my page to update with the
AsyncResult.IsCompleted property. The web service runs well, but my page is
not updated. The textbox should be updated everytime it checks to see if the
call was completed. It's only updated at the end. Here's my code:

protected void btn_process_Click(object sender, EventArgs e)
{
int iCount = 0;
localhost.Service obj = new localhost.Service();
AsyncCallback cb = new AsyncCallback(asciiFileCheckCallback);
IAsyncResult ar = obj.BeginAsciiFileCheck(txt_file.Text, cb, obj);
while (!ar.IsCompleted)
{
this.txt_counter.Text = iCount.ToString(); //The textbox
remains empty.
iCount++;
}
}
private void asciiFileCheckCallback(IAsyncResult ar)
{
localhost.Service obj = (localhost.Service)ar.AsyncState;
obj.EndAsciiFileCheck(ar);
}

Any help is appreciated. If there's a better way of letting the user know
that the service is running, please let me know. I've seen some sites
(specially the travel sites) that display an intermediary page while their
process is running. Is that difficult to implement?

Thanks.
May 8 '06 #1
0 897

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

Similar topics

4
by: Tim Wallace | last post by:
I bought a new laptop from Dell 2 weeks ago. It's running XP Pro, Service Pack 2. I installed my Visual Studio .NET, as well as VS 6. It has .NET 1.1 loaded. I want to run a site from my local...
0
by: Tony Lewis | last post by:
I'm running IIS on a Windows 2k server and have just installed the .NET framework 1.1 so I can deploy ASP.NET applications on my server through .NET Studios. All my normal ASP applications run fine...
5
by: Silvia | last post by:
Hi I have a windows service that run a aspx page in the url http://ip/raimserver/ris/cpr002.asxp with user and password and produce an error: Time-Out sending request. RIS server can be down....
1
by: Jim Bayers | last post by:
Our network nazi doesn't want us running a webserver on the server that has a connection to the campus database so we created a remote object that runs as a windows service. The windows service...
4
by: Timo | last post by:
Over the weekend, I am installing a website on a laptop so our sales staff can give a demonstration on Monday at a potential client site. Things are not working as expected. I'm hoping what's wrong...
3
by: Carl Johansen | last post by:
I'm not sure of the best way to do what I want. Users of my website want to run reports that take a long time to generate. This is what I would like to happen: 1. User requests aspx page 2....
5
by: moondaddy | last post by:
I have a .net 2.0 winforms app that calls a web service which creates creates a GUID and caches it, then passes the GUID back to the winform. then it opens a aspx page and passes the GUID as a...
0
by: =?Utf-8?B?bmVlcmFqYkBub2lkYS5ub3NwYW1oY2x0ZWNoLmNv | last post by:
Hi, We have created new .NET web service and running it through the default test page and it's working fine in our development environment. When we moved the web service to the acceptance...
2
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. How can I schedule an ASPX page to execute every hour? I know this request is odd & there are plenty of better ways to accomplish running an automated task every hour. That being said, is it...
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: 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
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: 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
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.