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. Submitting to another form

Submitting to another form

Scheduled Pinned Locked Moved ASP.NET
question
3 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.
  • T Offline
    T Offline
    Tyrone_whitey
    wrote on last edited by
    #1

    How do you submit to another form using the submit button??

    Ty

    S 1 Reply Last reply
    0
    • T Tyrone_whitey

      How do you submit to another form using the submit button??

      Ty

      S Offline
      S Offline
      sstocker
      wrote on last edited by
      #2

      Add a PostBackUrl property to your button: PostBackUrl="~/Page2.aspx" Then to get the value on your second page: Dim t As TextBox = CType(PreviousPage.FindControl("Textbox1"), TextBox) Label1.Text = t.Text The above only works in .NET 2.0

      A 1 Reply Last reply
      0
      • S sstocker

        Add a PostBackUrl property to your button: PostBackUrl="~/Page2.aspx" Then to get the value on your second page: Dim t As TextBox = CType(PreviousPage.FindControl("Textbox1"), TextBox) Label1.Text = t.Text The above only works in .NET 2.0

        A Offline
        A Offline
        Amit Kumar G
        wrote on last edited by
        #3

        But please keep in mind postbackurl post back main page again. So if you need to transfer values use Server.transfer and get the values thru properties. In general, if it is straight forwrd transfer tehn user PostBackUrl or response.redirect. Amit

        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