How to load data from one page to another page in asp.net

Showing Answers 1 - 11 of 11 Answers

pronobesh

  • Sep 27th, 2006
 

you can load data by cross page post back

laxmi

  • Oct 12th, 2006
 

hi pronobesh,

thanks for ur ans.will u give some more explanation to this question plz.

  Was this answer useful?  Yes

cynthia justin

  • Oct 18th, 2006
 

protected PostToAnotherPageSenderCSharp_aspx prev;protected void Page_Load(object sender, EventArgs e){    if(PreviousPage != null)    {        prev = (PostToAnotherPageSenderCSharp_aspx)PreviousPage;        this.txtCrossPage.Text = prev.PublicTxtName;    }}

In this method we cast the PreviousPage to an appropriate page, since we know which page posted to this page. If you use more than one page to post to a single page, you should check if the previous page is casteable to this page using is operator or cast using as operator and check if it is null. After casting since ASP.NET knows which page it is, we can reach its method and fields normally. But normally web controls are defined as protected therefore you cannot reach them. What you should do is create a simple public property as shown below to reach the fields. If intellisense does not work here do not worry, it works perfectly during runtime.

  Was this answer useful?  Yes

Mahesh

  • Oct 18th, 2006
 

You can send data from one page to another page by three ways,1. By usual postback 2. By using querystring3. By using property(get / set accessor)

  Was this answer useful?  Yes

ashwnai kumar

  • Oct 25th, 2006
 

There are many ways

In Asp.net2.0 You can use cross page submission.

Using Query String

Using Post

Etc

  Was this answer useful?  Yes

Sing

  • Jun 25th, 2007
 

Using the Property ( Get and Set ) we can transfer the value from one page to another page

  Was this answer useful?  Yes

learner

  • Nov 2nd, 2007
 

cant we use SESSION variable to load data to another page

  Was this answer useful?  Yes

Wecan load data from one page to another page by using these ways:
1.We can pass the data from one page by using context object if we are using server.transfer method to redirect the user.
2.We can use query string
3.We can use session variable
4.We can use crosspage postback for this.
5.By using properties

We can load data from one page to another page by using these ways:
1.We can pass the data from one page by using context object if we are using server.transfer method to redirect the user.
2.We can use query string
3.We can use session variable
4.We can use cross page postback for this.
5.By using properties

  Was this answer useful?  Yes

Hanumant Gade

  • Aug 30th, 2011
 

You can send data from one page to another page by using form tag.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions