Once your page has been processed, it's 'disconnected' from the server, thus, no DB connections. You would need to a) reload the page to make your connection b) open a new window to make your connection.
There are such things as remote scripting, but I don't think you want to go there. Just get it straight that client and server are 2 seperate monsters, each allowing you to do things the other doesn't. Reacting to events is client-side. There are no events on the server side - at least in Classic ASP. In ASP.Net there are events fired such as Page_Load, etc... Chris Tifer ----- Original Message ----- From: "Tsiris Alexandros" <[EMAIL PROTECTED]> To: "ActiveServerPages" <[EMAIL PROTECTED]> Sent: Wednesday, September 04, 2002 7:18 AM Subject: RE: asp code inside a vbscript function? > > > So, you only want it to write out a string when they press a button? > > > > I'm pretty sure the correct answer already came through and > > the correct Object you need to reference is the Document > > (client). Not > > the Response Object (server). > > > > Chris Tifer > > Well basicaly Chris, I did this as a test. The ultimate purpose for this > would be to both display 'something' as well as access the database and > display some of its values. > > > --- > You are currently subscribed to activeserverpages as: [EMAIL PROTECTED] > To unsubscribe send a blank email to %%email.unsub%% --- You are currently subscribed to activeserverpages as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
