0

I follow this instruction: http://weblogs.asp.net/dotnetstories/archive/2011/07/01/a-simple-tutorial-on-asp-net-dynamic-data.aspx?CommentPosted=true#commentmessage I have added the links to my ASP.NET Dynamic Data master page as follow:

<script src="Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="Scripts/jquery-ui-1.8.20.custom.min.js" type="text/javascript"></script>
<link href="NewStyles/ui-lightness/jquery-ui-1.8.20.custom.css" rel="stylesheet" type="text/css" />

I add this code on the top of my DateTime_Edit.ascx.

<script type="text/javascript">
$(document).ready(function () {
    $('#<%=TextBox1.ClientID %>').datepicker();
});

But it doesn't work. Any idea?

Karadous
  • 1,555
  • 3
  • 26
  • 37

2 Answers2

0

Check your Site.master file that the EnablePartialRendering value is false and not true

<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="false"/>
Himanshu
  • 31,810
  • 31
  • 111
  • 133
Yohai
  • 1
0

I used Page.ResolveURL() in src attribiute. Like this one:

<script src='<%=Page.ResolveURL("~/Scripts/jquery-1.7.2.min.js")%>' type="text/javascript"></script>
Karadous
  • 1,555
  • 3
  • 26
  • 37