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. passing parameter using postbackURL property...

passing parameter using postbackURL property...

Scheduled Pinned Locked Moved ASP.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.
  • N Offline
    N Offline
    Naif_Prof
    wrote on last edited by
    #1

    Dears I’m using VS2005 , if we use postbackURL property button or link button it will pass all controls values in page (form method and encrypted ) to second page and we can get the values in second page by using Request.form[“ControlName”] Now , I need same way to pass the variables values in code behind of page1 to page2 by using postbackURL Can any one explain how I can write do it thanks a lot -- modified at 8:53 Monday 16th October, 2006

    J 1 Reply Last reply
    0
    • N Naif_Prof

      Dears I’m using VS2005 , if we use postbackURL property button or link button it will pass all controls values in page (form method and encrypted ) to second page and we can get the values in second page by using Request.form[“ControlName”] Now , I need same way to pass the variables values in code behind of page1 to page2 by using postbackURL Can any one explain how I can write do it thanks a lot -- modified at 8:53 Monday 16th October, 2006

      J Offline
      J Offline
      Jay_se
      wrote on last edited by
      #2

      Hi, For ex, in Source's (Source.aspx) CodeBehind (C#), string val_a="abc"; string val_b="def"; LinkButton.PostBackURL="Target.aspx?a=" + val_a + "&b=" + val_b; You can get the values in Target page(Target.aspx.cs) using, string a = Request.QueryString["a"].ToString(); string b= Request.QueryString["b"].ToString(); Also You may use PreviousPage property of ASP.NET 2.0 The following could be added to Target.aspx: <%@ PreviousPageType VirtualPath="~/Source.aspx" %> TextBox nameBox = PreviousPage.NameBox; Here,NameBox is the TextBox control in the Source Page. -- modified at 3:31 Monday 16th October, 2006

      Regards, Jay :)

      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