AspNetAtoms.com daily updates on ASP.NET Tutorials, Articles, Authors and more. Subscribe to our newsletter and receive updates on ASP.NET resources on the Internet.

Categories

Recent Posts

Handling Data After Post Back : Bipin Joshi

Monday, January 19 2009

In the last two lessons you were introduced with rendering of custom controls. Often your custom controls consist of input controls that allow users to edit data. The new data entered by the user must be persisted across post backs. In this lesson you will learn just that. IPostBackDataHandler interface In order to handle data after page post back the custom control class must implement IPostBackDataHandler interface. The IPostBackDataHandler interface defines the following two methods: LoadPostData: The LoadPostData method allows you to read posted data. The method receives two parameters viz. postDataKey and postCollection. The postDataKey is the ID of the custom control and postCollection contains all the posted data. You can retrieve posted data for your custom control by specifying the postDataKey. The LoadPostData method should return true if the data inside the control has been changed else it should return false....

Read More:
Handling Data After Post Back : Bipin Joshi
Also See:
Adding a build banner to ASP.NET Pages : Adam Langley
Crystal Reports in ASP.NET : Richard Bean
Image Manager for Image Gallery : Saifi Hasan
Introduction Part 3: Master Pages and Site Navigation : Scott Mitchell
ASP.NET Tip: Creating Paging for a Repeater Control : Eric Smith

Post your comment

Comment