Open newly created HTML page in new window?

Discussion in 'ASP .Net' started by mcmwhite@hotmail.com, May 31, 2006.

  1. Guest

    Hi,

    Does anyone know how I can open a newly-created HTML page
    in a new window, using ASP.NET?

    Eg. I have an ASP.NET page which creates some new HTML, based
    on what the user has entered into a textbox. The ASP page
    has a textbox (txtYourName) and a button. Clicking the button
    will run this piece of code:


    Page.aspx
    ---------

    Response.Write("<b>Hello there " & txtYourName.Text & ", how are
    you?</b>")



    But I want this HTML to appear in a new browser window (like a pop-up
    window),
    rather than in the original page. I also want the original page to
    remain
    in the "old" window.

    Is this possible?

    Thanks,

    Mark.
     
    , May 31, 2006
    #1
    1. Advertising

  2. Have a look at this, seems to do everything you need

    http://www.codeproject.com/aspnet/asppopup.asp

    --
    Regards

    John Timney
    Microsoft MVP

    <> wrote in message
    news:...
    > Hi,
    >
    > Does anyone know how I can open a newly-created HTML page
    > in a new window, using ASP.NET?
    >
    > Eg. I have an ASP.NET page which creates some new HTML, based
    > on what the user has entered into a textbox. The ASP page
    > has a textbox (txtYourName) and a button. Clicking the button
    > will run this piece of code:
    >
    >
    > Page.aspx
    > ---------
    >
    > Response.Write("<b>Hello there " & txtYourName.Text & ", how are
    > you?</b>")
    >
    >
    >
    > But I want this HTML to appear in a new browser window (like a pop-up
    > window),
    > rather than in the original page. I also want the original page to
    > remain
    > in the "old" window.
    >
    > Is this possible?
    >
    > Thanks,
    >
    > Mark.
    >
     
    John Timney \( MVP \), May 31, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Earl Teigrob
    Replies:
    0
    Views:
    343
    Earl Teigrob
    Aug 5, 2003
  2. David Lozzi

    Get newly created record's ID??

    David Lozzi, Dec 7, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    427
    Jacco Schalkwijk
    Dec 7, 2004
  3. =?Utf-8?B?bWN3b29x?=

    Error Debubbing newly created ASP.NET Project

    =?Utf-8?B?bWN3b29x?=, Nov 11, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    2,364
    Steven Cheng[MSFT]
    Nov 15, 2005
  4. Edward Lorden

    HTTP 403 error on a newly created web site

    Edward Lorden, Jun 2, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    8,963
    Edward Lorden
    Jun 2, 2006
  5. yootzee
    Replies:
    2
    Views:
    114
    yootzee
    Oct 16, 2003
Loading...

Share This Page