Image MapOn Pre Render 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.
Definition
Namespace: EWSoftware.ImageMaps.Web.Controls
Assembly: EWSoftware.ImageMaps.Web.Controls (in EWSoftware.ImageMaps.Web.Controls.dll) Version: 2024.12.31.0
Assembly: EWSoftware.ImageMaps.Web.Controls (in EWSoftware.ImageMaps.Web.Controls.dll) Version: 2024.12.31.0
C#
protected override void OnPreRender(
EventArgs e
)VB
Protected Overrides Sub OnPreRender (
e As EventArgs
)C++
protected:
virtual void OnPreRender(
EventArgs^ e
) overrideF#
abstract OnPreRender :
e : EventArgs -> unit
override OnPreRender :
e : EventArgs -> unit Parameters
- e EventArgs
- The event arguments
Remarks
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.