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. popup window

popup window

Scheduled Pinned Locked Moved ASP.NET
sysadmintoolsquestion
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.
  • T Offline
    T Offline
    tonaxxl
    wrote on last edited by
    #1

    i want the asp button to make its event in the behind code friest then open or redirect to open a popup widnow at the end of the event function i wanna to make the result of the server prossesing apear at a popup window but i found that the client side script happendd frist then the the event happend?????????????

    S 1 Reply Last reply
    0
    • T tonaxxl

      i want the asp button to make its event in the behind code friest then open or redirect to open a popup widnow at the end of the event function i wanna to make the result of the server prossesing apear at a popup window but i found that the client side script happendd frist then the the event happend?????????????

      S Offline
      S Offline
      spidur1
      wrote on last edited by
      #2

      Insert the following into the HTML of your ASPX page right before the form tag. Modify the settings however you like of course. This assumes your using javascript. function popup(text, name) { settings= "toolbar=no,location=no,directories=no,"+ "status=no,menubar=no,scrollbars=Yes,"+ "resizable=Yes,width=625,height=320;" MyNewWindow = open(text, name, settings); } To call the function from your code behind page use the following. It is a vb example. RegisterStartupScript("Key", " popup('/SomeForm.aspx', 'FormName'); ")

      T 1 Reply Last reply
      0
      • S spidur1

        Insert the following into the HTML of your ASPX page right before the form tag. Modify the settings however you like of course. This assumes your using javascript. function popup(text, name) { settings= "toolbar=no,location=no,directories=no,"+ "status=no,menubar=no,scrollbars=Yes,"+ "resizable=Yes,width=625,height=320;" MyNewWindow = open(text, name, settings); } To call the function from your code behind page use the following. It is a vb example. RegisterStartupScript("Key", " popup('/SomeForm.aspx', 'FormName'); ")

        T Offline
        T Offline
        tonaxxl
        wrote on last edited by
        #3

        thank u sir so much

        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