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

Run script from asp.net

Hello,

I have the following problem.

I have a webapplication written in asp.net and a SQL-Server database.
The webapplication has a public and a private part. The users for the
private part come from an oracle database. I also have a linked server
in my SQL-Server to the oracle database.

I have to synchronise the users in my webapp with the users from the
oracle database. This needs to happen every month and has to be started
manually by pressing for example on a button in the website. But the
problem is that it are over 100000 users that need to be checked and
inserted or updated. So when the button is clicked it starts
processing, but after a while it gives a timeout.

Does anyone know how to start a function by clicking a button on a
webpage, and then leave that function and render the page instead of
waiting for the function to be finished and then rendering the page.
Something like an one thread that can run on the server, and has been
started by the webapp.

Allready a lot of tanks

Christophe

Apr 28 '06 #1
1 1010
you can start a background thread, but its not the best approach. In your
case, I'd create a SQLAgent job that imported the users, and have the web
page start the job. You could also have a web page query the job status, so
the users could if it was running, completed or failed.

-- bruce (sqlwork.com)
"Goffin" <go******************@yahoo.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
Hello,

I have the following problem.

I have a webapplication written in asp.net and a SQL-Server database.
The webapplication has a public and a private part. The users for the
private part come from an oracle database. I also have a linked server
in my SQL-Server to the oracle database.

I have to synchronise the users in my webapp with the users from the
oracle database. This needs to happen every month and has to be started
manually by pressing for example on a button in the website. But the
problem is that it are over 100000 users that need to be checked and
inserted or updated. So when the button is clicked it starts
processing, but after a while it gives a timeout.

Does anyone know how to start a function by clicking a button on a
webpage, and then leave that function and render the page instead of
waiting for the function to be finished and then rendering the page.
Something like an one thread that can run on the server, and has been
started by the webapp.

Allready a lot of tanks

Christophe

Apr 28 '06 #2

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

Similar topics

6
by: Mike Daniel | last post by:
I am attempting to use document.write(pageVar) that displays a new html page within a pop-up window and the popup is failing. Also note that pageVar is a complete HTML page containing other java...
3
by: Water Cooler v2 | last post by:
Questions: 1. Can there be more than a single script block in a given HEAD tag? 2. Can there be more than a single script block in a given BODY tag? To test, I tried the following code. None...
19
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function myFunc(val1ok, val2ok) ' do something ok myFunc = " return something ok" End Function </script>
3
by: rsteph | last post by:
I have a script that shows the time and date. It's been working on my site for quite a while now. Suddenly it stops showing up, after getting my drop down menu to work. If I put text between the...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
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
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: 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
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
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...
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...

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.