
April 12th, 2000, 04:08 PM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
<i><b>Originally posted by : Claudia</b></i><br />I donīt know if I completly understand what you need, but let me tell what I did sometime:<br />For display a MessageBox into a ASP you have to create a Application Variable like this in a VbScript Block Server:<br /><br />***********************************************<br />Sub Button1_onclick()<br />Application("errores") = blocks.Generatps<br />if Application("errores") = 0 then<br />Nom = blocks.ArchivoRes<br />Nombre ="file://sqltst1a/Inetpub/wwwroot/Labdim/Excel/" & Nom<br />Response.Clear<br />Response.Redirect Nombre <br />END IF<br />end Sub<br />***********************************************<br />Then you have to write this out of Block Server:<br /><br /><%if Application("errores") = 0 then %><br /><br /> <SCRIPT LANGUAGE=vbscript><br /> <!--<br /> msgbox "Database Error",48<br /> --><br /> </SCRIPT><br /><%end if%><br /><br />I hope this be useful.<br /><br /><br /><br />------------<br />Goutham at 4/4/2000 4:21:47 AM<br /><br />Hi,<br /> My application needs to alert the user as and when there are <br /> changes in the database.<br /> When a change in database takes place a pop box should come up and <br /> alert the user.<br /> <br /> How can I do it through ASP using VBScript ?<br /> Messagebox function and Alert does not work in ASP ..<br /> Please help me out..<br /><br /> <br /> Goutham<br /> <br />
|