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. Pop up window in ASP.Net

Pop up window in ASP.Net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelp
4 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.
  • A Offline
    A Offline
    Anuradha612
    wrote on last edited by
    #1

    Hi, I am developing an application, which needs a pop up window to be opened, when a button is clicked, i have tried out Response.redirect, but then it navigates from one page to another, i want both the windows to be opened, can some body help me in this regard

    N 1 Reply Last reply
    0
    • A Anuradha612

      Hi, I am developing an application, which needs a pop up window to be opened, when a button is clicked, i have tried out Response.redirect, but then it navigates from one page to another, i want both the windows to be opened, can some body help me in this regard

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      You can use ClientScriptManager.RegisterStartUpScript("name","your popup JS") to open a popup window. Or use simple Response.Write()

      All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

      A 1 Reply Last reply
      0
      • N N a v a n e e t h

        You can use ClientScriptManager.RegisterStartUpScript("name","your popup JS") to open a popup window. Or use simple Response.Write()

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

        A Offline
        A Offline
        Anuradha612
        wrote on last edited by
        #3

        Pls can you be more clear with the post, i have never used the function said above, can you explain the parameters for the function.. and another important issue is that, i am creating the button dynamically and for that button click, i should be able to open a popup window

        N 1 Reply Last reply
        0
        • A Anuradha612

          Pls can you be more clear with the post, i have never used the function said above, can you explain the parameters for the function.. and another important issue is that, i am creating the button dynamically and for that button click, i should be able to open a popup window

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          It is used to register client side scripts to the page. The script you specified inside that will be added to the page. See the following sample.

          ClientScriptManager.RegisterStartUpScript("SampleAlert","<script language='javascript'>alert('hi') </script>");

          See the MSDN[^] documentation

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

          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