ImageMapOnPreRender Method
This is overridden to register the hidden fields used by the postback code if any of the image map
areas have their
Action set to
PostBack. It also registers a
script block containing a helper function used in that situation as well.
Namespace: EWSoftware.ImageMaps.Web.ControlsAssembly: EWSoftware.ImageMaps.Web.Controls (in EWSoftware.ImageMaps.Web.Controls.dll) Version: 2023.1.3.0
protected override void OnPreRender(
EventArgs e
)
Protected Overrides Sub OnPreRender (
e As EventArgs
)
protected:
virtual void OnPreRender(
EventArgs^ e
) override
abstract OnPreRender :
e : EventArgs -> unit
override OnPreRender :
e : EventArgs -> unit
Parameters
- e EventArgs
- The event arguments
Normally, the control will search for the form control on the page when it needs to register
the helper script for post back image areas. If it cannot find the form control, it will default to
using index zero (forms[0]) instead. If you have other form controls on the page (i.e. normal HTML
forms in addition to the ASP.NET Run at Server form), you may need to use the
FormId
property to specify the actual form ID to use for the post back script. If specified, that form ID
will override the search behavior and will always be used. If null or blank, the above noted search
and fallback behavior will be used instead.