Hi,
I am using 3 uploader control, 2 is in default.aspx and 1 is in usercontrol.ascx and this usercontrol will load on default.aspx on runtime.
I need to clear status label whenver the user click upload button, so i used _OnStart method. But the problem i faced is, i cannot using both places (default.aspx & usercontrol.ascx). If i used in usercontrol page, then default page onstart method is not involked.
function
In UserControl.ascx
CuteWebUI_AjaxUploader_OnStart() {
document.getElementById("
<%= UploaderStatus3.ClientID %>').className = 'hidden';
}
In Default.aspx
CuteWebUI_AjaxUploader_OnStart() {
var uploader1 = document.getElementById("<%= Uploader1.ClientID %>");
var uploader2 = document.getElementById("<%= Uploader2.ClientID %>");
var hidden = this;
if (hidden.id == "MainContent_Uploader1") {
document.getElementById(
'<%= UploaderStatus1.ClientID %>').className = 'hidden';
}
else if (hidden.id == "MainContent_Uploader2") {
document.getElementById(
'<%= UploaderStatus2.ClientID %>').className = 'hidden';
}
else if(hidden.id == "MainContent_SettingsControl_Uploader3")
//I need to clear a label text in usercontrol How do i achive this???????
}
}
=========In default.aspx
<tr>
<td class="style2" colspan="3">
<asp:UpdatePanel ID="SettingsControlUpdatePanel" runat="server">
<ContentTemplate>
<asp:PlaceHolder ID="SettingsPlaceholder" runat="server" /> <== here i am loading usercontrol1.ascx on runtime
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
Thanks in advance for your valuable reply.
Regards