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. posting data opens new window on Modal and modelless window

posting data opens new window on Modal and modelless window

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netcomsysadminhelp
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.
  • R Offline
    R Offline
    Rizwan Bashir
    wrote on last edited by
    #1

    Hello There I have one asp.net page for user registration. It displays when user click Sign In. This is a modelless popup ( I tried Modal as well) The page has to get all the information and on click of submit it needs to post the data to server. The problem is when I click submit button it opens a new window automatically and submits the data in that window. Is there any solution where I can Stop the opening of new window and could post the data within same window ? Thanks

    Rizwan Bashir ALM Soft[^]

    I 1 Reply Last reply
    0
    • R Rizwan Bashir

      Hello There I have one asp.net page for user registration. It displays when user click Sign In. This is a modelless popup ( I tried Modal as well) The page has to get all the information and on click of submit it needs to post the data to server. The problem is when I click submit button it opens a new window automatically and submits the data in that window. Is there any solution where I can Stop the opening of new window and could post the data within same window ? Thanks

      Rizwan Bashir ALM Soft[^]

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      Check Form tag in html source, I think there is an action property U have set it. remove it. or check ur button click event. Best Regard Pathan

      ---------------------------------------------------

      R 1 Reply Last reply
      0
      • I Imran Khan Pathan

        Check Form tag in html source, I think there is an action property U have set it. remove it. or check ur button click event. Best Regard Pathan

        ---------------------------------------------------

        R Offline
        R Offline
        Rizwan Bashir
        wrote on last edited by
        #3

        No there is no Action proprty set as this has to auto post . The form tag is set to runat="server" so on button click when there is a server side event it auto post the form and you do not need to set the actions or any manual method to submit. Problem still there. if you would try this by adding two pages you could see what I means

        Rizwan Bashir ALM Soft[^]

        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