Hi,
Here is the client side API to set the data
- <script>
- var inp = document.getElementById("textboxid");
- var currtask;
-
- inp.onchange = function () {
- if(currtask)
- currtask.SetClientData(inp.value);
- }
- function CuteWebUI_AjaxUploader_OnTaskStart(task) {
- currtask = task;
- currtask.SetClientData(inp.value);
- }
- </script>
and here is how server side use it
- if (uploader.IsValidationRequest)
- {
- string clientdata = Request.Form["_AjaxUploaderClientData_"];
- uploader.WriteValidationError("Test : client data : "+clientdata);
- Response.End();
- }
Regards,
Terry