Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Java Script doesn't run before server.transfer

Java Script doesn't run before server.transfer

Scheduled Pinned Locked Moved Visual Basic
javajavascriptsysadmintoolstutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mtm88001
    wrote on last edited by
    #1

    I am using a javascript alert as a msgbox temp = " alert ('Login Required'); " page.registerstartupscript("login",temp) script works fine until I add server.transfer("login.aspx") the transfer works and the script doesn't execute Any Ideas on how to force the script to run first then the transfer

    D 1 Reply Last reply
    0
    • M mtm88001

      I am using a javascript alert as a msgbox temp = " alert ('Login Required'); " page.registerstartupscript("login",temp) script works fine until I add server.transfer("login.aspx") the transfer works and the script doesn't execute Any Ideas on how to force the script to run first then the transfer

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      First, this question belongs in the ASP.NET Forum. Second, you can't force the client to run ANY script. Third, you might want to look into Forms Authentication. Any page that's protected by the authentication automatically redirects to a login page. You don't have to do anything in your code to make it work... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups