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