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. How to open a new form by clicking button

How to open a new form by clicking button

Scheduled Pinned Locked Moved ASP.NET
tutorial
3 Posts 3 Posters 2 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.
  • A Offline
    A Offline
    aam1r
    wrote on last edited by
    #1

    Hi all!. I want to open a new form by clicking a button. For example, i have a form at which i have a button Add User. When i click it, it should open the form named Add User. Regards, Aamir Could I ever be an IT GURU...

    J 1 Reply Last reply
    0
    • A aam1r

      Hi all!. I want to open a new form by clicking a button. For example, i have a form at which i have a button Add User. When i click it, it should open the form named Add User. Regards, Aamir Could I ever be an IT GURU...

      J Offline
      J Offline
      Jerry Hammond
      wrote on last edited by
      #2

      One of the easiest method is Response.Redirect.

      namespace Toasty0 { /// /// Summary description for Redirect. /// public class Redirect : System.Web.UI.Page { private void YourBigBadButton_Click(object sender, System.EventArgs e) { // Response.Redirect Method here if(IsPostBack) { Response.Redirect("Place URL of new web form here"); } }

      Does that answer your question? Jerry Most people are willing to pay more to be amused than to be educated--Robert C. Savage, Life Lessons Toasty0.com Ladder League (beta)

      P 1 Reply Last reply
      0
      • J Jerry Hammond

        One of the easiest method is Response.Redirect.

        namespace Toasty0 { /// /// Summary description for Redirect. /// public class Redirect : System.Web.UI.Page { private void YourBigBadButton_Click(object sender, System.EventArgs e) { // Response.Redirect Method here if(IsPostBack) { Response.Redirect("Place URL of new web form here"); } }

        Does that answer your question? Jerry Most people are willing to pay more to be amused than to be educated--Robert C. Savage, Life Lessons Toasty0.com Ladder League (beta)

        P Offline
        P Offline
        powerlc
        wrote on last edited by
        #3

        string URL; URL = "OpenPage.apsx" ;//You New Page Response.Write("windows.open("+URL+");");////////////////////////////// I think it's should be OK.

        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