Northwoods.GoWeb Assembly > Northwoods.GoWeb Namespace > GoView Class : NoPost Property |
IMG
object cause postbacks for the whole page or whether they just cause this IMG
to be reloaded.'Declaration <DefaultValueAttribute()> <CategoryAttribute("Behavior")> <DescriptionAttribute("Whether a click or drag just reloads the image or causes a whole page postback")> Public Overridable Property NoPost As Boolean
[DefaultValueAttribute()] [CategoryAttribute("Behavior")] [DescriptionAttribute("Whether a click or drag just reloads the image or causes a whole page postback")] public virtual bool NoPost {get; set;}
A value of false will cause mouse-up and other events on the IMG
object (in the client-side DOM that represents this view) to call the standard __doPostBack
function that ASP.NET defines. A value of true will instead reload the IMG
's src
attribute, while passing along query string commands that would normally have been posted for that view.
If you set this to true, please be aware that mouse events and other actions that are passed through the GoWebImage operate on this view without the context of a Page
. If you want to define any GoView
event handlers, you will need to do so in an override of OnNoPostLoad, and those event handlers cannot depend on the Page
or other WebControls. For most of the GoView
events, it would be simplest to just override the corresponding On...
protected method.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2