how can i call javascript from masterpage ?

Joined
Aug 10, 2007
Messages
1
Reaction score
0
i trying to call datetimepicker.js file but am using master page so i got error plzzz help ......... thanks

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<script language="javascript" src="~/datetimepicker.js" type="text/javascript"></script>
<script language="JavaScript">
<!--
if (document.images)
{
calimg= new Image(16,16);
calimg.src="images/cal.gif";
}
//-->
</script>

<TD><INPUT name="txtDate" type="text" class="eStextM1" id="txtDate" size="25" runat="server">
<A href="javascript:NewCal('txtDate','ddmmyyyy')" runat="server" ><IMG height="16" alt="Pick a date" src="../images/cal.gif" width="16" border="0"></A>

</asp:Content >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,832
Latest member
UtaHetrick

Latest Threads

Top