Simple Question --- Alert("THIS IS A TEST" -- Doe

Results 1 to 2 of 2

Thread: Simple Question --- Alert("THIS IS A TEST" -- Doe

  1. #1
    Desai Guest

    Default Simple Question --- Alert("THIS IS A TEST" -- Doe

    I have a question about why my alert box is not working. I am essentially trying to call a sub routine from my ASP page and raise an alert box if a condition is met. <BR><BR>Can someone help.<BR> <BR><BR><BR>&#060;%@Language = VBScript%&#062;<BR>&#060;% Language = VBSCRIPT runat=server<BR>sub mysub() <BR><BR> prompt "THIS IS CANCELLING" <BR>end sub<BR><BR>%&#062;<BR><BR> <BR><BR><BR><BR><BR>&#060;%<BR><BR>myvar = Request.Form("entertimesheet")<BR>&#039CASE 1: Modify Timesheet<BR>if ucase(myvar) = "MODIFY TIMESHEET" THEN<BR>Session("Status_DataEntry") = "" <BR> Response.redirect ("enterts.asp") <BR>End If <BR><BR>&#039CASE 2: Cancel<BR>if ucase(myvar) = "CANCEL" THEN<BR> Session("Status_DataEntry") = "" <BR> mysub() <BR>&#039Response.redirect ("main.asp") <BR>End If

  2. #2
    Sathiya Guest

    Default RE: Simple Question --- Alert(

    You cant have alert in Server side but u can call the Alert from server side like this <BR>Response.write("&#060;script language=""javascript""&#062;alert(""Hi"")&#060;/script&#062;")<BR>so it writes this in client side from the server side call.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts