execute asp script from within a javascript function

Results 1 to 2 of 2

Thread: execute asp script from within a javascript function

  1. #1
    Anup Nair Guest

    Default execute asp script from within a javascript function

    How can I execute ASP script from within a Javascript function?<BR>How can I execute javascript code from within ASP Script?

  2. #2
    Chris Willey Guest

    Default RE: execute asp script from within a javascript function

    You cannot execute ASP script from within Javascript, unless you&#039re loading another page (i.e.: redirecting to another .asp page of reloading the current .asp page)<BR><BR>ASP scripting does not interfere with Javascript code. All the Javascript stuff will happen after the ASP code runs. You can conditionally run Javascript code using ASP like this:<BR><BR>&#060;%<BR>If JS = True Then<BR>%&#062;<BR>&#060;script language="Javascript"&#062;<BR>&#060;!--<BR>alert("This is Javascript.");<BR>//--&#062;<BR>&#060;/script&#062;<BR>&#060;%<BR>End If<BR>%&#062;<BR><BR>Does this answer your questions?

Posting Permissions

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