I agree with you Peter. Hence my somewhat simple suggestions.
Regards
John Timney (MVP)
"Peter Bromberg [C# MVP]" <pbromberg@yahoo.nospammin.com> wrote in message
news:35A48E89-0E1A-4F9A-8BD1-6A6BDF6BF5BD@microsoft.com...[color=blue]
> Agreed,
> but in this case our OP is probably not at that level of experience yet.
> To
> be really efficient, you could offload the request into an MSMQ queue, and
> have a separate process retrieve the items from the queue and process them
> one - by - one.
> Peter
>
> --
> Co-founder, Eggheadcafe.com developer portal:
>
http://www.eggheadcafe.com
> UnBlog:
>
http://petesbloggerama.blogspot.com
>
>
>
>
> "Demetri" wrote:
>[color=green]
>> I wouldn't want to reject the request and have the user re-submit a bunch
>> of
>> times in a row until it goes through. That is not a good user experience.
>> Again, a queue of some sort to manage the input one at a time in an
>> asynchronous fashion is more sound in my eyes.
>>
>> --
>> -Demetri
>>
>>
>> "John Timney (MVP)" wrote:
>>[color=darkred]
>> > An easy solution would be to limit access to only one named user in
>> > web.configs location tag. But to limit it to one random user - instead
>> > of
>> > limiting access to a page, check if the SQL statement is running by
>> > setting
>> > a simple flag in the DB and checkings its value before running the data
>> > dump. If it is reject the request.
>> > --
>> > Regards
>> >
>> > John Timney (MVP)
>> >
>> >
>> >
>> > "Ben" <wubin_98@yahoo.com> wrote in message
>> > news:1149709103.484024.82410@i39g2000cwa.googlegro ups.com...
>> > > Hi,
>> > >
>> > > In ASP.NET website, I have a web page is used to dump raw data into
>> > > database (SQL Server). The database data will corrupt if two users
>> > > dump raw data concurrently.
>> > > How to allow only one user to access a web page at one time?
>> > >
>> > > Thanks,
>> > > Ben
>> > >
>> >
>> >
>> >[/color][/color][/color]