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. how to show a pupup on my parant window.

how to show a pupup on my parant window.

Scheduled Pinned Locked Moved ASP.NET
toolstutorialquestion
5 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.
  • J Offline
    J Offline
    Jitendra Parida Jeetu
    wrote on last edited by
    #1

    Hi, For when click datalist item show pupup on parent window i use this code : any other???????

    protected void dlPhotos_ItemCommand(object source, DataListCommandEventArgs e)
    {
    if (e.CommandName == "Select")
    {
    Response.Write("<script>");
    Response.Write("window.open(Default3.aspx','_self','toolbar=0,location=0,menubar=0,resizable=0,width=400,height=320')");
    Response.Write("</script>");
    }
    }

    D 1 Reply Last reply
    0
    • J Jitendra Parida Jeetu

      Hi, For when click datalist item show pupup on parent window i use this code : any other???????

      protected void dlPhotos_ItemCommand(object source, DataListCommandEventArgs e)
      {
      if (e.CommandName == "Select")
      {
      Response.Write("<script>");
      Response.Write("window.open(Default3.aspx','_self','toolbar=0,location=0,menubar=0,resizable=0,width=400,height=320')");
      Response.Write("</script>");
      }
      }

      D Offline
      D Offline
      Dennis E White
      wrote on last edited by
      #2

      Jitendra Parida1987 wrote:

      ItemCommand(object source, DataListCommandEventArgs e)

      this is server side code which will get executed the user clicks a button in your DataList. I am assuming that your expected behavior is not working. since everything in your script appears to be static why not just write the script code into your .aspx page directly? add your control and on the click event call your javascript function. the only thing you need change is returning false so that it won't post back.

      as if the facebook, twitter and message boards weren't enough - blogged

      J 1 Reply Last reply
      0
      • D Dennis E White

        Jitendra Parida1987 wrote:

        ItemCommand(object source, DataListCommandEventArgs e)

        this is server side code which will get executed the user clicks a button in your DataList. I am assuming that your expected behavior is not working. since everything in your script appears to be static why not just write the script code into your .aspx page directly? add your control and on the click event call your javascript function. the only thing you need change is returning false so that it won't post back.

        as if the facebook, twitter and message boards weren't enough - blogged

        J Offline
        J Offline
        Jitendra Parida Jeetu
        wrote on last edited by
        #3

        Hi, My requirement is dynamically implement so that i try this code.

        D 1 Reply Last reply
        0
        • J Jitendra Parida Jeetu

          Hi, My requirement is dynamically implement so that i try this code.

          D Offline
          D Offline
          Dennis E White
          wrote on last edited by
          #4

          Jitendra Parida1987 wrote:

          My requirement is dynamically implement

          dynamically implement?? there is nothing dynamic about that script that you posted so why not just put it in a static javascript function that gets called from each item in the DataList. the html code that gets displayed is dynamically generated on the server so maybe that is it?? sounds like a homework assignment when you mention it this.. haha

          as if the facebook, twitter and message boards weren't enough - blogged

          J 1 Reply Last reply
          0
          • D Dennis E White

            Jitendra Parida1987 wrote:

            My requirement is dynamically implement

            dynamically implement?? there is nothing dynamic about that script that you posted so why not just put it in a static javascript function that gets called from each item in the DataList. the html code that gets displayed is dynamically generated on the server so maybe that is it?? sounds like a homework assignment when you mention it this.. haha

            as if the facebook, twitter and message boards weren't enough - blogged

            J Offline
            J Offline
            Jitendra Parida Jeetu
            wrote on last edited by
            #5

            hi, please tell me what is problem in my code???????

            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