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. Transfer data from one page to another

Transfer data from one page to another

Scheduled Pinned Locked Moved Web Development
csharpquestionasp-net
2 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.
  • B Offline
    B Offline
    BLaZiNiX
    wrote on last edited by
    #1

    if you know C# in Windows Form instead of Web Form you know that when you want to pass data from one window to another you only have to make something like this : Dialog2 dlg = new Dialog2(); dlg.label1.Text = this.text1.Text; now I want to make the same thing but in web form I have a form login in asp.net and if the user enter the correct username and password I want to access to the main page(the one after the login) and show his name in a label. how can I do this ?? Source will be appreciate or reference :) thanks

    M 1 Reply Last reply
    0
    • B BLaZiNiX

      if you know C# in Windows Form instead of Web Form you know that when you want to pass data from one window to another you only have to make something like this : Dialog2 dlg = new Dialog2(); dlg.label1.Text = this.text1.Text; now I want to make the same thing but in web form I have a form login in asp.net and if the user enter the correct username and password I want to access to the main page(the one after the login) and show his name in a label. how can I do this ?? Source will be appreciate or reference :) thanks

      M Offline
      M Offline
      Mike NET
      wrote on last edited by
      #2

      somewhere in your login.aspx page you would redirect user to your main page... Response.Redirect("main.aspx?name=BLaZiNiX"); ... in your main page in Page_Load(...) label1.Text = Request.QueryString["name"]; Mike M WinInsider.com

      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