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. Asp.net 2 - show webform as pop up form?

Asp.net 2 - show webform as pop up form?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netalgorithmsquestion
6 Posts 3 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
    Rahman Mahmoodi
    wrote on last edited by
    #1

    hello guys, i was wondering about the possibilities to show a web form as a pop up form (just for selection eg searching) and possibly get the ID of the selection when the user selects an item eg after search result Anyone ever tryed? thx

    T 1 Reply Last reply
    0
    • R Rahman Mahmoodi

      hello guys, i was wondering about the possibilities to show a web form as a pop up form (just for selection eg searching) and possibly get the ID of the selection when the user selects an item eg after search result Anyone ever tryed? thx

      T Offline
      T Offline
      Tirthadip
      wrote on last edited by
      #2

      hi rahman, just a bit of javascript coding is needed. use window.open('mywindow','',formname.aspx,height=400,width=400) have good times. Tirthadip

      R 1 Reply Last reply
      0
      • T Tirthadip

        hi rahman, just a bit of javascript coding is needed. use window.open('mywindow','',formname.aspx,height=400,width=400) have good times. Tirthadip

        R Offline
        R Offline
        Rahman Mahmoodi
        wrote on last edited by
        #3

        Thank you, however I think I needed to provide bit more details in the first place ... ok, I have a page which is using a master page file. I want to click a button and then show another page eg 'popupform.aspx'. Can i call the code you provided from the code behinde of my original form? I kept it in the html portion as below: function ShowWindow() { window.open('mywindow','','formname.aspx',height='400',width='400') } asp:Button ID="Button1" runat="server" Text="Button" "OnClick"="ShowWindow" But it raises the error of: "Error 1 'ShowWindow' is not a member of 'ASP.getpostpage_aspx'." it looks like it down't like that javascript part. any ideas? PS: I kept onclcik inside double quites becuase it was not allowed in the message :) -- modified at 4:11 Friday 14th April, 2006

        G 2 Replies Last reply
        0
        • R Rahman Mahmoodi

          Thank you, however I think I needed to provide bit more details in the first place ... ok, I have a page which is using a master page file. I want to click a button and then show another page eg 'popupform.aspx'. Can i call the code you provided from the code behinde of my original form? I kept it in the html portion as below: function ShowWindow() { window.open('mywindow','','formname.aspx',height='400',width='400') } asp:Button ID="Button1" runat="server" Text="Button" "OnClick"="ShowWindow" But it raises the error of: "Error 1 'ShowWindow' is not a member of 'ASP.getpostpage_aspx'." it looks like it down't like that javascript part. any ideas? PS: I kept onclcik inside double quites becuase it was not allowed in the message :) -- modified at 4:11 Friday 14th April, 2006

          G Offline
          G Offline
          gyokusei
          wrote on last edited by
          #4

          Rahman Mahmoodi wrote:

          asp:Button ID="Button1" runat="server" Text="Button" "OnClick"="ShowWindow"

          <asp:Button ID="Button1" Runat="server" Text="Button"></asp:Button> on Page_Load: Button1.Attributes["onclick"] = "ShowWindow(); return false;"; That way is used for server control. However, you just add an HTML control is OK.

          R 1 Reply Last reply
          0
          • G gyokusei

            Rahman Mahmoodi wrote:

            asp:Button ID="Button1" runat="server" Text="Button" "OnClick"="ShowWindow"

            <asp:Button ID="Button1" Runat="server" Text="Button"></asp:Button> on Page_Load: Button1.Attributes["onclick"] = "ShowWindow(); return false;"; That way is used for server control. However, you just add an HTML control is OK.

            R Offline
            R Offline
            Rahman Mahmoodi
            wrote on last edited by
            #5

            Yes, Thank you. This one worked however the size is not working so it still shows the form as full screen but the max button is disabled.

            1 Reply Last reply
            0
            • R Rahman Mahmoodi

              Thank you, however I think I needed to provide bit more details in the first place ... ok, I have a page which is using a master page file. I want to click a button and then show another page eg 'popupform.aspx'. Can i call the code you provided from the code behinde of my original form? I kept it in the html portion as below: function ShowWindow() { window.open('mywindow','','formname.aspx',height='400',width='400') } asp:Button ID="Button1" runat="server" Text="Button" "OnClick"="ShowWindow" But it raises the error of: "Error 1 'ShowWindow' is not a member of 'ASP.getpostpage_aspx'." it looks like it down't like that javascript part. any ideas? PS: I kept onclcik inside double quites becuase it was not allowed in the message :) -- modified at 4:11 Friday 14th April, 2006

              G Offline
              G Offline
              gyokusei
              wrote on last edited by
              #6

              Rahman Mahmoodi wrote:

              window.open('mywindow','','formname.aspx',height='400',width='400')

              window.open('formname.aspx','subwin','height=400,width=400,menubar=no,toolbars=no ,scrollbars=no');

              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