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

Page use by one user at a time.

I need a bit of advice:

One asp.net page allows user #1 to generate a file and download that
file.

At the same time, user #2 is attempting the same thing.

User #2 needs to be locked out until user #1 has completed downloading
the generated file.

Downloading the file is an asynchronous operation so my solution of
using Sql Server to lock out user #2 won't work.

Is there another way to make this possible (or is there a way to make
file download synchronous)?

Thanks to anyone who can provide some pointers.

Rich

Apr 13 '07 #1
3 1204
On Apr 12, 8:08 pm, "Rich" <louis...@yahoo.comwrote:
I need a bit of advice:

One asp.net page allows user #1 to generate a file and download that
file.

At the same time, user #2 is attempting the same thing.

User #2 needs to be locked out until user #1 has completed downloading
the generated file.

Downloading the file is an asynchronous operation so my solution of
using Sql Server to lock out user #2 won't work.

Is there another way to make this possible (or is there a way to make
file download synchronous)?

Thanks to anyone who can provide some pointers.

Rich
Hi Rich,

Let me see if I understand your question. You want block any
concurrent user from generating and downloading the file? Why would
you want to do that? (Just curious). The more I understand about your
problem, the easier it is to try to help.

Thanks!

- Javier
ASP.NET MVP

Apr 13 '07 #2
On Apr 12, 7:33 pm, "Javier G. Lozano" <jgloz...@gmail.comwrote:
On Apr 12, 8:08 pm, "Rich" <louis...@yahoo.comwrote:


I need a bit of advice:
One asp.net page allows user #1 to generate a file and download that
file.
At the same time, user #2 is attempting the same thing.
User #2 needs to be locked out until user #1 has completed downloading
the generated file.
Downloading the file is an asynchronous operation so my solution of
using Sql Server to lock out user #2 won't work.
Is there another way to make this possible (or is there a way to make
file download synchronous)?
Thanks to anyone who can provide some pointers.
Rich

Hi Rich,

Let me see if I understand your question. You want block any
concurrent user from generating and downloading the file? Why would
you want to do that? (Just curious). The more I understand about your
problem, the easier it is to try to help.

Thanks!

- Javier
ASP.NET MVP- Hide quoted text -

- Show quoted text -
Javier,

Eg: user #1 generates a file and subsequently downloads same file.
User #2 generates the same file again, causing the contents of the
file to be different from the one user #1 generated. So when user #1
downloads the file, it's not the same file.
Does that help?

Rich

Apr 13 '07 #3
Can you create the file with a unique filename each time?

"Rich" <lo******@yahoo.comwrote in message
news:11*********************@l77g2000hsb.googlegro ups.com...
On Apr 12, 7:33 pm, "Javier G. Lozano" <jgloz...@gmail.comwrote:
>On Apr 12, 8:08 pm, "Rich" <louis...@yahoo.comwrote:


I need a bit of advice:
One asp.net page allows user #1 to generate a file and download that
file.
At the same time, user #2 is attempting the same thing.
User #2 needs to be locked out until user #1 has completed downloading
the generated file.
Downloading the file is an asynchronous operation so my solution of
using Sql Server to lock out user #2 won't work.
Is there another way to make this possible (or is there a way to make
file download synchronous)?
Thanks to anyone who can provide some pointers.
Rich

Hi Rich,

Let me see if I understand your question. You want block any
concurrent user from generating and downloading the file? Why would
you want to do that? (Just curious). The more I understand about your
problem, the easier it is to try to help.

Thanks!

- Javier
ASP.NET MVP- Hide quoted text -

- Show quoted text -

Javier,

Eg: user #1 generates a file and subsequently downloads same file.
User #2 generates the same file again, causing the contents of the
file to be different from the one user #1 generated. So when user #1
downloads the file, it's not the same file.
Does that help?

Rich

Apr 13 '07 #4

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

Similar topics

7
by: Paul | last post by:
I thought this is more of an IE issue but i've had no joy on that group perhaps somebody here will have a clue. If i click a link to a web page embedded in Excel (97 OR 2000) i get the standard...
8
by: Galina | last post by:
Hello I have 6 dependent list boxes on my ASP page:  Faculty;  Lecturer;  Course;  Course occurrence;  Group;  Week commencing date. When faculty is selected, lists of lecturers and...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
0
by: Goober at christianDOTnet | last post by:
I'm wanting to fix the following on a web page without really re-inventing anything. What I have is a vb web page with a radiobuttonlist where I can pick Current or History year. Underneath...
7
by: Tom wilson | last post by:
I have created a very simple example that doesn't work. Form1 contains a textbox and a button: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
7
by: UJ | last post by:
I've got a page with a user control on it. While the page is loading, it needs to check certain conditions of the user object to enable/disable things on the screen. Currently in the page_load of...
5
by: Nathan Sokalski | last post by:
When I view my index.aspx page any time after the first time, I recieve the following error: System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize)...
1
by: panche | last post by:
I'm developing a fairly simple user control that has two textboxes for date/time entry (a from date/time and a to date/time). One of my requirements is that there should be no button that sets...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
9
by: Gummy | last post by:
Hello, I created a user control that has a ListBox and a RadioButtonList (and other stuff). The idea is that I put the user control on the ASPX page multiple times and each user control will...
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: 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
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...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.