Validating radupload inside grid in client side

Thread is closed for posting
2 posts, 0 answers
  1. Silvio Silva Junior
    Silvio Silva Junior avatar
    100 posts
    Member since:
    Mar 2010

    Posted 10 Jun 2010 Link to this post

    Hello guys.

    I saw some post about radupload validation in grid, but is server-side. I'm trying to use this tip:

    but, when I put in my code the javascript:

    <script type="text/javascript"
     function validateRadUpload1(source, arguments) 
      arguments.IsValid = $find("<%= MyUploadControl.ClientID %>").validateExtensions(); 
    </script > 

    I got an error:

    The name 'MyUploadControl' does not exist in the current context

    The RadUpload is inside a grid;
    The page is inside a masterpage;

    I have tried with the complete name of control, like: ContentPlaceHolder1_RadGrid1_ctl00_ctl05_MyUploadControl

    but I got the same error.

    What's the best way to use this kind of validation?

    Best regards.


  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 11 Jun 2010 Link to this post


    Here I found a code library which describes how to access server controls in a grid from client side.

    Accessing server controls in a grid template on the client

Back to Top