Accesing ASP.NET contol in .aspx source

Posted on 2008-02-06
Medium Priority
Last Modified: 2013-11-07
in .aspx file   i have the following code
<script type="text/javascript">DateInput('orderdate', true, 'MM-DD-YYYY')</script>
<asp:TextBox ID="exectDate" runat="server"/>

now what i want

<script type="text/javascript">DateInput('orderdate', true, 'MM-DD-YYYY',  ==i want to "exectDate.Text" here==)</script>

DateInput is a javascript function and called well, no problem at all..  basically it is DatePicker and i am trying to change the default date of the DatePicker.. if   " is it possible to access exectDate TextBox then my problem will be solved " and i think it is possible but i am forgetting the exect syntex..
Plese help me . Thanks in advance.
Question by:EE_Navigator
1 Comment
LVL 43

Accepted Solution

TimCottee earned 1500 total points
ID: 20830570
<script type="text/javascript">DateInput('orderdate', true, 'MM-DD-YYYY',  document.getElementById('<%exextDate.ClientID%>').value)</script>

Should do it.

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The video will let you know the exact process to import OST/PST files to the cloud based Office 365 mailboxes. Using Kernel Import PST to Office 365 tool, one can quickly import numerous OST/PST files to Office 365. Besides this, the tool also comes…
Watch the video to learn how one can deal with PST file corruption issue with an outstanding Kernel for Outlook PST Repair Tool easily. Using this tool, non-technical users can swiftly perform the repair process to restore their essential data witho…
Suggested Courses
Course of the Month3 days, 9 hours left to enroll

599 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question