Hi sansindia85,
Try
- <script>
- function CuteWebUI_AjaxUploader_OnStart() {
- var mylabel=document.getElementById("<%= myUploader1.FindControl("myLable").ClientID %>");
- }
- </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
- <%@ Control Language="C#" ClassName="myUploader" %>
- <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>
- <script runat="server">
-
- </script>
- <asp:Label ID="myLable" runat="server" Text="some text"></asp:Label>
- <CuteWebUI:UploadAttachments ID="uploader3" runat="server">
- </CuteWebUI:UploadAttachments>
Regards,
Ken