Re: CuteWebUI_AjaxUploader_OnStart - not invoked in user control (.ascx page)

  •  02-28-2013, 1:26 PM

    Re: CuteWebUI_AjaxUploader_OnStart - not invoked in user control (.ascx page)

    Hi sansindia85,

     

    Try

     

    1. <script>  
    2.     function CuteWebUI_AjaxUploader_OnStart() {  
    3.         var mylabel=document.getElementById("<%= myUploader1.FindControl("myLable").ClientID %>");  
    4.     }  
    5. </script>  
     

    myUploader1 is the user control ID which in page default.aspx. myLable is the lable id which in the user control.

     

    user control use in default.aspx.

     

    <%@ Register Src="~/myUploader.ascx" TagPrefix="CE" TagName="myUploader" %>

      <CE:myUploader ID="myUploader1" runat="server" />

     

    User control code

     

    1. <%@ Control Language="C#" ClassName="myUploader" %>  
    2. <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>  
    3. <script runat="server">  
    4.   
    5. </script>  
    6. <asp:Label ID="myLable" runat="server" Text="some text"></asp:Label>  
    7. <CuteWebUI:UploadAttachments ID="uploader3" runat="server">  
    8. </CuteWebUI:UploadAttachments>  
     

    Regards,

     

    Ken 

View Complete Thread