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. regarding PostBackURL

regarding PostBackURL

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelp
4 Posts 4 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
    ballameharmurali
    wrote on last edited by
    #1

    hello evryone, I have a doubt regarding PostBackURL.I take two form in the a ASP.NETWebApplication say Form1.aspx and Form2.aspx.When i redirect Form1 to Form2 the values in the Form1.aspx page r not maintaining like when again i come from Form2 to Form1 the values r not there(i mean the page is postback). Is there any solution to maintain those values without using session,cookies,application and ViewState.Any canbody help me plz it is urgent for me. ok byeee Murali

    N S B 3 Replies Last reply
    0
    • B ballameharmurali

      hello evryone, I have a doubt regarding PostBackURL.I take two form in the a ASP.NETWebApplication say Form1.aspx and Form2.aspx.When i redirect Form1 to Form2 the values in the Form1.aspx page r not maintaining like when again i come from Form2 to Form1 the values r not there(i mean the page is postback). Is there any solution to maintain those values without using session,cookies,application and ViewState.Any canbody help me plz it is urgent for me. ok byeee Murali

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Values won't be persisted, because you moved from Form1 to Form2.

      ballameharmurali wrote:

      Is there any solution to maintain those values without using session,cookies,application and ViewState.

      You can keep the values in Session. When posting the page to other ASPX page, you need to create session in other page (form2.aspx) and assign the values. If your Form1.aspx contains many controls, it's better to create a class and assign all the required values to class, and store the class object in session.


      My Website | Ask smart questions

      1 Reply Last reply
      0
      • B ballameharmurali

        hello evryone, I have a doubt regarding PostBackURL.I take two form in the a ASP.NETWebApplication say Form1.aspx and Form2.aspx.When i redirect Form1 to Form2 the values in the Form1.aspx page r not maintaining like when again i come from Form2 to Form1 the values r not there(i mean the page is postback). Is there any solution to maintain those values without using session,cookies,application and ViewState.Any canbody help me plz it is urgent for me. ok byeee Murali

        S Offline
        S Offline
        Sandeep Akhare
        wrote on last edited by
        #3

        Whats the problem in using the state management in your application , surely you are not going to use database also ... one thing could be creating xml file on fly and storing the inforamtion in it but o don't think it is good way of implimentation

        Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

        1 Reply Last reply
        0
        • B ballameharmurali

          hello evryone, I have a doubt regarding PostBackURL.I take two form in the a ASP.NETWebApplication say Form1.aspx and Form2.aspx.When i redirect Form1 to Form2 the values in the Form1.aspx page r not maintaining like when again i come from Form2 to Form1 the values r not there(i mean the page is postback). Is there any solution to maintain those values without using session,cookies,application and ViewState.Any canbody help me plz it is urgent for me. ok byeee Murali

          B Offline
          B Offline
          Baran M
          wrote on last edited by
          #4

          use Server.Transfer() instead of Server.Redirect() The Server.Transfer method also has a second parameter—"preserveForm". If you set this to True, using a statement such as Server.Transfer("WebForm2.aspx", True), the existing query string and any form variables will still be available to the page you are transferring to. For example, if your WebForm1.aspx has a TextBox control called TextBox1 and you transferred to WebForm2.aspx with the preserveForm parameter set to True, you'd be able to retrieve the value of the original page TextBox control by referencing Request.Form("TextBox1"). use it .it may helpful to you ...

          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