Modifying web part behavior

If you need to modify the behavior of standard web parts there are two options:

 

1) You only need to set the web part properties dynamically in your code

 

In this case, you need to create a user control, add the web part into it and write additional code. See chapter Setting web part properties dynamically in your code.

 

2) You need to modify the code or design of the web part

 

In this case, you need to create a copy of the standard web part as described in chapter Modifying the code or design of standard web parts.