473,749 Members | 2,580 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to execute a aspx page more than once simultanously?

Hi friends,

How to execute a aspx page more than once simultanously without using
threading?

regards,
Sivaraman.S
Nov 18 '05 #1
5 1362
The goal is ?

If you have some task to perform multiple times you could likely use an
asynchornous call to a web service or similar. Knowing the "why" may help to
raise better suggestions (likely this is not the exact same job with same
data ???)

Patrice

--

"Sivaraman. S" <Si********@dis cussions.micros oft.com> a écrit dans le message
de news:C5******** *************** ***********@mic rosoft.com...
Hi friends,

How to execute a aspx page more than once simultanously without using
threading?

regards,
Sivaraman.S

Nov 18 '05 #2
hi Patrice,

Thanks for ur suggestion. The actual scenario is this: I have 9 queries
to be executed. I want divide the 9 queries into 3 parts. Each part will now
have 3 quries. I want to execute the 3 parts simultaniously. I dont want to
use threading. If i use asynchronous call, If any error come in one part, the
other parts gets stopped. My scenario is, If error comes in first part, the
other two parts should get executed Successfully.

Regards,
Sivaraman.S

"Patrice" wrote:
The goal is ?

If you have some task to perform multiple times you could likely use an
asynchornous call to a web service or similar. Knowing the "why" may help to
raise better suggestions (likely this is not the exact same job with same
data ???)

Patrice

--

"Sivaraman. S" <Si********@dis cussions.micros oft.com> a écrit dans le message
de news:C5******** *************** ***********@mic rosoft.com...
Hi friends,

How to execute a aspx page more than once simultanously without using
threading?

regards,
Sivaraman.S


Nov 18 '05 #3
Performing multiple actions simultaneously implies threading. If this is what
you want to do, I don't see how you're going to avoid using threads.

"Sivaraman. S" wrote:
hi Patrice,

Thanks for ur suggestion. The actual scenario is this: I have 9 queries
to be executed. I want divide the 9 queries into 3 parts. Each part will now
have 3 quries. I want to execute the 3 parts simultaniously. I dont want to
use threading. If i use asynchronous call, If any error come in one part, the
other parts gets stopped. My scenario is, If error comes in first part, the
other two parts should get executed Successfully.

Regards,
Sivaraman.S

"Patrice" wrote:
The goal is ?

If you have some task to perform multiple times you could likely use an
asynchornous call to a web service or similar. Knowing the "why" may help to
raise better suggestions (likely this is not the exact same job with same
data ???)

Patrice

--

"Sivaraman. S" <Si********@dis cussions.micros oft.com> a écrit dans le message
de news:C5******** *************** ***********@mic rosoft.com...
Hi friends,

How to execute a aspx page more than once simultanously without using
threading?

regards,
Sivaraman.S


Nov 18 '05 #4
Basically it could be something like :
- begin call 1
- begin call 2
- begin call 3
- wait for all calls to be completed (or timeout ?)
- return final results to the user

You should wait for the longest of those 3 calls rather than waiting for the
cumulated times of those 3 calls.

With proper exception catching it shouldn't be a problem to have a problem
with call 1 but still using the results of call2 and call3. Make sure also
to test how it performs under load especially if this frequently used as the
load will be put on the server that processes these requests (and ultimately
you'll be sequential again or worse if you send too much requests).

You best best is likely to roughly test this model first before delving into
details...

Good luck.

Patrice

--

"Sivaraman. S" <Si********@dis cussions.micros oft.com> a écrit dans le message
de news:84******** *************** ***********@mic rosoft.com...
hi Patrice,

Thanks for ur suggestion. The actual scenario is this: I have 9 queries
to be executed. I want divide the 9 queries into 3 parts. Each part will now have 3 quries. I want to execute the 3 parts simultaniously. I dont want to use threading. If i use asynchronous call, If any error come in one part, the other parts gets stopped. My scenario is, If error comes in first part, the other two parts should get executed Successfully.

Regards,
Sivaraman.S

"Patrice" wrote:
The goal is ?

If you have some task to perform multiple times you could likely use an
asynchornous call to a web service or similar. Knowing the "why" may help to raise better suggestions (likely this is not the exact same job with same data ???)

Patrice

--

"Sivaraman. S" <Si********@dis cussions.micros oft.com> a écrit dans le message de news:C5******** *************** ***********@mic rosoft.com...
Hi friends,

How to execute a aspx page more than once simultanously without using threading?

regards,
Sivaraman.S


Nov 18 '05 #5
"Sivaraman. S" <Si********@dis cussions.micros oft.com> wrote in message
news:C5******** *************** ***********@mic rosoft.com...
Hi friends,

How to execute a aspx page more than once simultanously without using
threading?


My answer would be, "don't do that!".

This isn't the sort of thing that should be on an aspx page. Put this code
in a service of some kind, and use threading properly. Refer to the service
via .NET remoting from the aspx page.

John Saunders
Nov 18 '05 #6

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

Similar topics

0
304
by: bbenham | last post by:
In the Code-Behind file for a Specific page I'm doing, I am using Server.Execute("anotherpage.aspx", writer) to retrieve the resulting output of a different aspx page, which I am maniuplating etc. A page within a page concept. My problem, is that no matter what I seem to do, the Session scope does not appear to be available within the Code-behind for the "anotherpage.aspx" if I execute it with the Server.Execute() method. If I execute...
2
3337
by: Dune | last post by:
I'm trying to execute an aspx page by calling Server.Execute. The aspx page I'm trying to execute is in a different web app from the aspx page containing the Server.Execute statement. A slightly clearer explanation... Page1 exists in WebApp1. In the code-behind of Page2 in WebApp2, I have put Server.Execute("Path to Page1 in WebApp1"). When I call Server.Execute(String) using "http://localhost/WebApp1/Page1.aspx", everything works ok...
4
2997
by: Julia | last post by:
Hi Everyone, I am using webbrowser control to post data to an aspx page. However, for some reason, the aspx page sometimes will execute page_load event twice, and sometimes execute it once. So I might get different results for executing it. If I have the webbrwoser control to call it the first time, the aspx will usually execute the page_load twice. What can be the problem?
7
1488
by: Rajiv Gupta | last post by:
Hi, We are moving from asp to asp.net. In our existing model we execute the asp by including them in .html files. For example: In abc.html file we include following directive: <!--exec cgi="right_list.asp"-->
4
2272
by: ALI-R | last post by:
My home page of my website is named index.aspx ,when I upload it to the host ,I get 403 forbidden error,If I put an index.html there that link that aspx file,eveything works perfect? my second questions is that how can I get rid of the name of my homepage,it's now www.x.xom/index.aspx ,is ther a way of getting rid of index.aspx ,but reffering to it somehow? Thanks
9
2390
by: tshad | last post by:
I have an example I copied from "programming asp.net" (o'reilly) and can't seem to get the Sub (writefile) to execute. It displays all the response.write lines that are called directly, but not any of the response.write lines from inside the sub. ******************************************* <%@ Application Language="VB" %> <script runat="server">
21
2966
by: matvdl | last post by:
I have a system that was originally developed in asp - the pages are saved in SQL (there are over 10,000 pages) and saved to a temp directory in the server when requested by a client. I have updated this system and changed the pages that are saved to the server as aspx - everything works fine and pages can be served - but Its not impossible for a single client to request 100 plus pages in one session - as each page is requested it is...
0
1072
by: Brian | last post by:
I'm using Server.Execute to decide at run-time which .aspx page to use to format a mail message. Using a StringWriter, I call Server.Execute on the page that does the formatting, then snag the text from the StringWriter and stuff it into an email message. All these pages use a custom Page class that we've written to handle the startup/shutdown stuff and provide access to our business objects. That is, caller.aspx and callee.apsx both...
4
2562
by: john_smith_nebraska | last post by:
I am using VISTA . I have IIS enabled . I installed VS 2005 successfully. Under old ASPX you knwo you go to inetpub wwwroot and run a test default.aspx file to see if it executes properly. I pulled a starter program from Microsoft site and pasted it into VS 2005 at the default.aspx page of a new wesite called website1. I made sure website1 was added into IIS and was running.
0
8997
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8833
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9568
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9335
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
4709
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4881
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3320
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2794
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2218
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.