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. ASP.NET
  4. location.href javascript in asp.net

location.href javascript in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptasp-nettutorialquestion
3 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
    mijan
    wrote on last edited by
    #1

    Does anyone know how to link to other page using this code?once the 'OK' is clicked(the pop up javascript message) so it will redirect to new page.. tq~~ mijan

    L 1 Reply Last reply
    0
    • M mijan

      Does anyone know how to link to other page using this code?once the 'OK' is clicked(the pop up javascript message) so it will redirect to new page.. tq~~ mijan

      L Offline
      L Offline
      LeeOvEngland
      wrote on last edited by
      #2

      Are you using a javascript confirm? function askQuestion(){ var answer = confirm("Question?"); if (answer== true) // they pressed ok { window.location = "http://yoursite/thepage.htm"; } }

      M 1 Reply Last reply
      0
      • L LeeOvEngland

        Are you using a javascript confirm? function askQuestion(){ var answer = confirm("Question?"); if (answer== true) // they pressed ok { window.location = "http://yoursite/thepage.htm"; } }

        M Offline
        M Offline
        mijan
        wrote on last edited by
        #3

        Basically I have this code: Dim strMessage As String strMessage = "Click OK to save" Dim strScript As String = "" strScript += "alert(""" & strMessage & """);" strScript += "" In this code,the message box will comes out carrying the "Click OK to save".After we clicked the OK, it should redirect to another page. Where should the code be put? :~ mijan

        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