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. Web Development
  3. mixing the javascript code to .net

mixing the javascript code to .net

Scheduled Pinned Locked Moved Web Development
csharpjavascriptdatabasesysadminhelp
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.
  • V Offline
    V Offline
    vanhawk
    wrote on last edited by
    #1

    just a follow-up on my previous post, I use the javascript command, window.close to close the window of the site, and also i need to dispose the session using the session.abandon. the problem is that there is a confirmation windows upon closing the site, how can i use the client side render confirmation to trigger the command to dispose the session on the server side

    K 1 Reply Last reply
    0
    • V vanhawk

      just a follow-up on my previous post, I use the javascript command, window.close to close the window of the site, and also i need to dispose the session using the session.abandon. the problem is that there is a confirmation windows upon closing the site, how can i use the client side render confirmation to trigger the command to dispose the session on the server side

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      That confirmation you are getting is because of the window.close. You can fix this by setting the opener = this. Then you would no longer get the confirmation to close the window. As far as how to do the session abandon you should probably implement some ajax, since you can call that from your javascript and that can run some code back on the server side. Hope that helps. Ben

      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