Coding Web Parts.
The Web Part framework helps you write code to control all aspects of web parts behavior.
Not all things are automaticaly handled, changing the display mode, changing the personalizing scope, reseting data, creating web parts with custom or user controls, and creating connections.
PersonlizationADministration.FindSharedState method allows to find the personlization data using the FindUserState and ResetUser state.
Web parts can be implement following those typical patterns,
Master/Details(one shows the order, the other the items),
Filter by Form(one shows the order, other allows to edit items,
List/Form
InputDisplay: one to edit, the other to view
A web part can be a data provider, or consumer, or both.
When using provider/consumer, The data is not guaranteed to be final until the prerender event.
Custom controls as web parts allow to add new verbs to web parts, like, Verify.
Specifying whether a control is a provider or cusumer is done in the class using attributes, there are many attributes that allow to specify the scope etc, take time to go through those attributes to see which could be usefull.
Comments
Post a Comment