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

GetClientScriptEventReference() private method

private GetClientScriptEventReference ( ) : string
return string
		internal virtual string GetClientScriptEventReference ()
		{
			PostBackOptions options = GetPostBackOptions ();
			Page page = Page;
			
			if (options.PerformValidation || !String.IsNullOrEmpty (options.ActionUrl)) {
				return page != null ? page.ClientScript.GetPostBackEventReference (options, true) : String.Empty;
			} else {
				if (page != null)
					page.ClientScript.RegisterForEventValidation (options);
				return String.Empty;
			}
		}