Uncaught TypeError: Cannot read property 'id' of undefined

Posted by Vuyiswamb under ASP.NET AJAX on 6/10/2013 | Points: 10 | Views : 3783 | Status : [Member] [MVP] [Administrator] | Replies : 0
I am using RadAsyncUpload which is defined like this


<telerik:RadAsyncUpload ID="FileUpload1" runat="server" Skin="Forest" Width="272px">
</telerik:RadAsyncUpload>


and i have a asp.net button defined like this


<asp:Button ID="btnUpload" Width="180px"  Height="30px" runat="server" Text="Upload"
onclick="btnUpload_Click" />


Now it works and it uploads the file , but now i want to have a Progress Bar , so like other controls i did the following


<telerik:AjaxSetting AjaxControlID="btnUpload">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="btnUpload" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>

<telerik:AjaxUpdatedControl ControlID="FileUpload1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>

<telerik:AjaxUpdatedControl ControlID="lblMessage" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>

</UpdatedControls>
</telerik:AjaxSetting>

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
</telerik:RadAjaxLoadingPanel>


if i add this Ajax code , my Upload does not work , it give me the Following Error

Uncaught TypeError: Cannot read property 'id' of undefined


and chrome gives more info like

Uncaught TypeError: Cannot read property 'id' of undefined Telerik.Web.UI.WebResource.axd:2889
Telerik.Web.UI.RadAjaxControl._initializeRequest Telerik.Web.UI.WebResource.axd:2889
H.z.callBaseMethod Telerik.Web.UI.WebResource.axd:3
Telerik.Web.UI.RadAjaxManager._initializeRequest Telerik.Web.UI.WebResource.axd:3463
(anonymous function) Telerik.Web.UI.WebResource.axd:3
(anonymous function) Telerik.Web.UI.WebResource.axd:3
H.w.raiseEvent Telerik.Web.UI.WebResource.axd:3
e._onFormSubmit Telerik.Web.UI.WebResource.axd:9
e._doPostBack Telerik.Web.UI.WebResource.axd:9
(anonymous function) Telerik.Web.UI.WebResource.axd:3
onclick


Thanks

Thank you for posting at Dotnetfunda
[Administrator]



Responses

(No response found.)

Login to post response