troubleshooting Question

problem with JQuery DateTime picker in ASP.NET UserControl

Avatar of conrad2010
conrad2010 asked on
JavaScriptASP.NETAJAX
16 Comments1 Solution1039 ViewsLast Modified:
when implementing a JQuery DateTime picker in ASP.NET using this code:

$(document).ready(function () {
            $(".<%= DepartDate.ClientID %>").datepicker();
            $(".<%= ReturnDate.ClientID %>").datepicker();
        });

works fine in an ASP.NET .aspx page... when I try and implement the same on a UserControl, I get this error:

Name 'DepartDate' is not declared.
Name 'ReturnDate' is not declared.

this builds upon a previous entry located here:

https://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_27188534.html
ASKER CERTIFIED SOLUTION
leakim971
Multitechnician
Join our community to see this answer!
Unlock 1 Answer and 16 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 16 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros