コード例 #1
0
        private void ExecuteCommandOnClient(string fullQualification, bool useSyncPostBack, string command, string[] arguments)
        {
            var functionName          = fullQualification + (useSyncPostBack ? c_executeSyncCommandClientFunctionName : c_executeAsyncCommandClientFunctionName);
            var concatenatedArguments = String.Join(":", arguments);
            var script = String.Format("if({0}) {0}(\"{1}\",\"{2}\");", functionName, command, concatenatedArguments);

            ClientScript.RegisterStartupScriptBlock(this, GetType(), "CallExecuteCommandScript", script);
        }