On-chip implementation of optical nonlinear activation functions (NAFs) is essential for realizing large-scale photonic neural chips. To improve the reconfigurability and enrich the functions of photonic neural network (PNN), an NAF unit with a unique capability of performing multiple types of NAFs is highly preferred. In this work, we propose and experimentally demonstrate a microdisk modulator (MDM)-assisted NAF unit, in which multiple types of electro-optic NAFs with a high response speed and multiple types of all-optical NAFs with a low latency and reduced power consumption are performed in a single device. The fabricated MDM has an add-drop configuration, in which a lateral PN junction is incorporated to achieve high-speed resonance wavelength tuning. With the use of the high-speed nonlinear electro-optic effect, three different kinds of electro-optic NAFs including sigmoid function, radial basis function (RBF), and negative rectified linear unit (ReLU) function are realized by exploiting the free-carrier dispersion effect on silicon. Moreover, thanks to the strong optical confinement in the disk cavity, all-optical NAFs can be performed by exploiting the thermo-optic effect on silicon. In the experiment, four different kinds of all-optical NAFs including softplus function, RBF, clamped ReLU function, and leaky ReLU function are demonstrated. With the use of the realized clamped ReLU function, a convolutional neural network is simulated to perform a handwritten digit classification benchmark task, and an accuracy as high as 98 % is demonstrated. Thanks to its strong electro-optic and thermo-optic effects, the proposed MDM provides a unique capability of performing multiple types of electro-optic and all-optical NAFs, which is potential to be served as a flexible nonlinear unit in large-scale PNN chips.