Page view counter

How Do I: Implement a Cross Page PostBack in ASP.NET

In this video Chris Pels shows how to create a Cross Page PostBack in ASP.NET, where a control on a source page raises a PostBack event to a different target page. First, learn how to configure a Button control to PostBack to a different target page. Then, learn how to get information from controls on the source page with the PreviousPage property and the FindControl method. Then, learn how to use public properties on the source page to expose data to the target page, and learn how to use the @PreviousPageType directive on the target page to access these properties. Finally, learn the difference between a Cross Page PostBack and the Server.Transfer method.

Presented by Chris Pels

Duration: 29 minutes, 40 seconds

Date: 10 July 2008

Watch the video   |   Download the video   |   Get VB code  or  C# code

Video downloads: WMV | Zune | iPod | PSP | MPEG-4 | 3GP

Audio downloads: AAC | WMA | MPEG-4 | MPEG-3 | MPEG-2

Comments : 8

Leave a Comment

muhammed : On July 11, 2008 2:30 AM said:

hi chris this is great

fabio.galante : On July 11, 2008 10:02 AM said:

Hi Chris, very interesting this form of transferring data of a page for other, avoiding the use of Session for example.

gerunddev : On July 11, 2008 1:09 PM said:

Great video. I would be interested to know when you would use the different approaches and pros / cons of each.  Specifically I think of forms, checkouts etc which take an action then show a thankyou page.  Often I see button click events that take the action then Response.Redirect to the thanksyou page.  What if the thankyou page (or an intermediate) using these techniques handled the action then showed error / confirmation information?

erhan : On July 13, 2008 1:07 PM said:

Thank You.. Chris

dodampegama : On July 16, 2008 12:30 AM said:

good stuff chris

gater : On July 16, 2008 11:38 AM said:

Can you do a video about passing sensitive info between pages?

cv_vikram : On August 13, 2008 7:10 AM said:

thanks...

asater : On August 22, 2008 11:24 AM said:

Thank you so much

Leave a Comment

You must be logged in to leave a comment. Click here to log in.

Microsoft Communities