System.Web.UI.WebControls.ImageButton.GetPostBackOptions C# (CSharp) Method

GetPostBackOptions() protected method

protected GetPostBackOptions ( ) : System.Web.UI.PostBackOptions
return System.Web.UI.PostBackOptions
		protected virtual PostBackOptions GetPostBackOptions ()
		{
			PostBackOptions options = new PostBackOptions (this);
			Page page = Page;
			
			options.ActionUrl = (PostBackUrl.Length > 0 ?
					     (page != null ? page.ResolveClientUrl (PostBackUrl) : null)
					     : null);

			options.Argument = String.Empty;
			options.ClientSubmit = true;
			options.RequiresJavaScriptProtocol = true;
			options.PerformValidation = CausesValidation && page != null && page.AreValidatorsUplevel (ValidationGroup);
			if (options.PerformValidation)
				options.ValidationGroup = ValidationGroup;
			else
				options.ValidationGroup = null;
			
			return options;
		}