Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4608372
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:50:09+00:00 2026-05-22T00:50:09+00:00

My code: <asp:Content ID=Content2 ContentPlaceHolderID=MainContent runat=server> <asp:GridView runat=server ID=MyGridView AutoGenerateColumns=false> <Columns> <asp:BoundField DataField=Col1 HeaderText=Column

  • 0

My code:

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView runat="server" ID="MyGridView" AutoGenerateColumns="false">
        <Columns>
           <asp:BoundField DataField="Col1" HeaderText="Column 1" />
           <asp:BoundField DataField="Col2" HeaderText="Date 1" />
           <asp:BoundField DataField="Col3" HeaderText="Date 2" />
           <asp:TemplateField HeaderText="Date 2" >
                <EditItemTemplate>
                    <asp:TextBox ID="txtDate" CssClass="datepickerCompleted"
                        runat="server" Text="2011/1/1" ></asp:TextBox>
                </EditItemTemplate>
            </asp:TemplateField>        
           <asp:BoundField DataField="Col4" HeaderText="Date 3" />
           <asp:TemplateField HeaderText="Date 3"></asp:TemplateField>
        </Columns>
    </asp:GridView>
   <script type="text/javascript" language="javascript" src="<%= VirtualPathUtility.ToAbsolute("~/Script/jquery-1.4.1-vsdoc.js")%>"></script>
<script type="text/javascript">

    $(function () {
        $(".datepickerCompleted").datepicker();
    });
</script>
</asp:Content>

Followed example from here:
enter link description here

When I look at the source, i do not see any value populate in txtDate text box, which i suspect is then not firing the jquery method..

how do i debug?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T00:50:09+00:00Added an answer on May 22, 2026 at 12:50 am

    Your code looks good, but the datepicker is part of jQuery UI which is a separate download/script–it’s not included in the jquery-1.4.1 file, and it looks like that’s the only script you have referenced.

    EDIT: Here’s an example that works for me:

    <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    
        <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
        <script src="Scripts/jquery-ui-1.8.12.custom.min.js" type="text/javascript"></script>
    
        <script type="text/javascript">
            $(function () {
                $(".datepickerCompleted").datepicker();
            });
        </script>
    </asp:Content>
    
    <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    
        <asp:GridView runat="server" ID="MyGridView" AutoGenerateColumns="false">
            <Columns>
               <asp:TemplateField HeaderText="Date 2">                
                    <ItemTemplate>
                        <asp:TextBox ID="txtDate" CssClass="datepickerCompleted" runat="server" Text="2011/1/1" ></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateField>        
            </Columns>
        </asp:GridView>
    
    </asp:Content>
    

    You can download a copy of jQuery UI here, and here‘s some more information on the datapicker.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can any body help me out. I have this code <asp:Content ID=Content2 ContentPlaceHolderID=MainContent runat=server>
View: <asp:Content ID=Content2 ContentPlaceHolderID=MainContent runat=server> <h2>Index</h2> <script type=text/javascript> $(document).ready(function() { $(document).ready(function() { $(#example).submit(function() {
I have the following code in the front end <asp:Content ID=Content1 ContentPlaceHolderID=cphMain runat=server> <script
I'm calling a silverlight component in my aspx page like this </asp:Content> <asp:Content ID=Content2
I have code like this on some aspx page in my Web Application: <asp:Content
The code for the asp.net page is: <div class=facebox_content> <% if (CurrentUser.Role == Free)
I have ajax code for asp.net (non-mvc) to call to a webMethod to get
I am working with old ASP code and I am not sure about semantics
I have somebody elses code (C# ASP.Net) which contains the following query: string query
What should i use to code Classic ASP under Linux. I have really tried

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.