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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Child window

Child window

Scheduled Pinned Locked Moved ASP.NET
helpwpfwcf
4 Posts 4 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.
  • S Offline
    S Offline
    sirisha guttikonda
    wrote on last edited by
    #1

    hi all i have a problem with child window. i have a child window with the name brand.aspx In brand page iam adding a new brand and then exiting form the page. and now i have a brand dropdown in parent window... after exiting form the child window newly entered brand is not immediately binding to the brand dropdown in parent window. if i refresh the page then it is adding but i want to bind immediately this is the code i wrote in child window exit button Page.ClientScript.RegisterStartupScript(Me.[GetType](), "close", "self.close();") can u help me in this issue... Thanks in advance

    siri

    V M J 3 Replies Last reply
    0
    • S sirisha guttikonda

      hi all i have a problem with child window. i have a child window with the name brand.aspx In brand page iam adding a new brand and then exiting form the page. and now i have a brand dropdown in parent window... after exiting form the child window newly entered brand is not immediately binding to the brand dropdown in parent window. if i refresh the page then it is adding but i want to bind immediately this is the code i wrote in child window exit button Page.ClientScript.RegisterStartupScript(Me.[GetType](), "close", "self.close();") can u help me in this issue... Thanks in advance

      siri

      V Offline
      V Offline
      varshavmane
      wrote on last edited by
      #2

      U will have to do like this on parent window: var winSettings = "dialogWidth:400px;dialogHeight:250px; help: no; status: no;directories:no,menubar:no"; var values = window.showModalDialog("brand.aspx?no=" + brandno + "&name=" + brandname, " ", winSettings); if(values == 1) { window.location.reload(); } so that it will refresh the page accordingly... Hope it solves ur problem....

      1 Reply Last reply
      0
      • S sirisha guttikonda

        hi all i have a problem with child window. i have a child window with the name brand.aspx In brand page iam adding a new brand and then exiting form the page. and now i have a brand dropdown in parent window... after exiting form the child window newly entered brand is not immediately binding to the brand dropdown in parent window. if i refresh the page then it is adding but i want to bind immediately this is the code i wrote in child window exit button Page.ClientScript.RegisterStartupScript(Me.[GetType](), "close", "self.close();") can u help me in this issue... Thanks in advance

        siri

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

        You just need to write some javascript into the body tag of the pop-up page after the submit has been processed, like this: If <> Then Response.Write "" Response.Write "" Response.Write "" Else see link http://p2p.wrox.com/topic.asp?TOPIC\_ID=5956 Bindiya

        1 Reply Last reply
        0
        • S sirisha guttikonda

          hi all i have a problem with child window. i have a child window with the name brand.aspx In brand page iam adding a new brand and then exiting form the page. and now i have a brand dropdown in parent window... after exiting form the child window newly entered brand is not immediately binding to the brand dropdown in parent window. if i refresh the page then it is adding but i want to bind immediately this is the code i wrote in child window exit button Page.ClientScript.RegisterStartupScript(Me.[GetType](), "close", "self.close();") can u help me in this issue... Thanks in advance

          siri

          J Offline
          J Offline
          jagan123
          wrote on last edited by
          #4

          in child window java script u write window.opener.document.getElementbyid("parentcontrl").value=child control value

          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