System.Web.UI.WebControls.GridView.GetCallbackScript C# (CSharp) Method

GetCallbackScript() protected method

protected GetCallbackScript ( IButtonControl control, string argument ) : string
control IButtonControl
argument string
return string
		protected virtual string GetCallbackScript (IButtonControl control, string argument)
		{
			if (EnableSortingAndPagingCallbacks) {
				Page page = Page;
				if (page != null)
					page.ClientScript.RegisterForEventValidation (UniqueID, argument);
				return "javascript:GridView_ClientEvent (\"" + ClientID + "\",\"" + control.CommandName + "$" + control.CommandArgument + "\"); return false;";
			} else
				return null;
		}