Hello,
In my Webforms app, in Refernce I have JuiceUI. In my aspx, I can find
runat="server" ID="juiceInqDtPkr" TargetControlID="inqDtPickerTxt" MaxDate="0" DateFormat="d M yy" DefaultDate="0" /> ID="inqDtPickerTxt" runat="server" TextMode="Date" CssClass="form-control"> The error that I get is :
Unhandled exception at line 138, column 2 in http://localhost:19715/Scripts/juice.js 0x800a138f - JavaScript runtime error: Unable to get property '_attachDatepicker' of undefined or null reference
In my Scripts folder, I have juice.js & juice.min.js. In my Master file :
<%--To learn more about bundling scripts in ScriptManager see http://go.microsoft.com/fwlink/?LinkID=301884 --%>
<%--Framework Scripts--%>
<%--Site Scripts--%>
Even in my web.config file under tag, I have :
assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" /> assembly="JuiceUI" namespace="Juice" tagPrefix="juice" />
I don't think I have missed out anything for the JuiceUI to execute properly. You can see in ScriptManager, I have tried to add juice over there also. But in any ways, I get no success.
I couldn't find any cause for this error. Any idea why is this error causing & how to solve it !!! Even I googled this error, but couldn't get any productive help.
Any help is highly appreciated.
Thanks
ramya bharathPosted May 28, 2015, 12:02 PM
Juice ui has four dependencies in your code I have seen three so try adding amplify.js dependency and try.
This also has a order of adding reference check this link fir details http://stackoverflow.com/questions/12846158/juice-ui-control-attachcontrol-is-null-or-not-an-object
TerryPosted May 28, 2015, 3:09 PM