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. new page in server side

new page in server side

Scheduled Pinned Locked Moved ASP.NET
csharpsysadminquestion
5 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.
  • M Offline
    M Offline
    m rastgar
    wrote on last edited by
    #1

    i have a button which should open a new page in server side. and after clicking it, there will be two browser page. what is its server side code. my server side language is c#.net.

    thanks rastgar

    G 1 Reply Last reply
    0
    • M m rastgar

      i have a button which should open a new page in server side. and after clicking it, there will be two browser page. what is its server side code. my server side language is c#.net.

      thanks rastgar

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Either you don't want what you asked for, or you have some very unusal reason for wanting it. If you open a new page in server side, it will be opened on the server, and it won't be available to the user. If you don't want to open it in server side at all, but on the client side, you have to do that from the browser. You can use Javascript to do that: window.open('PageToOpen.aspx', '_blank');

      --- b { font-weight: normal; }

      M 2 Replies Last reply
      0
      • G Guffa

        Either you don't want what you asked for, or you have some very unusal reason for wanting it. If you open a new page in server side, it will be opened on the server, and it won't be available to the user. If you don't want to open it in server side at all, but on the client side, you have to do that from the browser. You can use Javascript to do that: window.open('PageToOpen.aspx', '_blank');

        --- b { font-weight: normal; }

        M Offline
        M Offline
        m rastgar
        wrote on last edited by
        #3

        there are alot of axample for what i want to do. mmmmmmmmmmmmmmmmmmmmmm for example: in yahoo mail. have ever seen whenever you want to delete a mail, yahoo opens a new page for you to confirm deletion? doesn't it process in server side? of course yes. because your request is sent to server. how can i implement it? i know that javascript code but you suppose that i want to write some code in buttonclick event depending on my database, and for each condition i sould open a new page in new window not the old window. how can i do that? thanks rastgar

        P 1 Reply Last reply
        0
        • M m rastgar

          there are alot of axample for what i want to do. mmmmmmmmmmmmmmmmmmmmmm for example: in yahoo mail. have ever seen whenever you want to delete a mail, yahoo opens a new page for you to confirm deletion? doesn't it process in server side? of course yes. because your request is sent to server. how can i implement it? i know that javascript code but you suppose that i want to write some code in buttonclick event depending on my database, and for each condition i sould open a new page in new window not the old window. how can i do that? thanks rastgar

          P Offline
          P Offline
          prakash_210
          wrote on last edited by
          #4

          Yes boss. On buttonclick of that button write as Response.Write("Call javascript function here") Thats it. Best of Luck

          1 Reply Last reply
          0
          • G Guffa

            Either you don't want what you asked for, or you have some very unusal reason for wanting it. If you open a new page in server side, it will be opened on the server, and it won't be available to the user. If you don't want to open it in server side at all, but on the client side, you have to do that from the browser. You can use Javascript to do that: window.open('PageToOpen.aspx', '_blank');

            --- b { font-weight: normal; }

            M Offline
            M Offline
            m rastgar
            wrote on last edited by
            #5

            Thanks Alot

            prog

            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