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 7172195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:34:02+00:00 2026-05-28T15:34:02+00:00

Hi all I have done a work regarding date picker in visual studio 2010

  • 0

enter image description here

Hi all I have done a work regarding date picker in visual studio 2010 which is working fine in VS2005 and VS2008..

my sample design is

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">
    <title></title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script>

    <script type="text/javascript" src="js/jquery.datepick.js"></script>

    <style type="text/css">
        @import "css/jquery.datepick.css";
    </style>

    <script type="text/javascript">
        $(document).ready(function () {
            $('<%= txtHiredate.ClientID %>').datepick({ showOnFocus: false, showTrigger: '#calImg' });
        });
    </script>

    <script type="text/javascript">
        $(document).ready(function () {
            $('<%= txtDateofBirth.ClientID %>').datepick({ showOnFocus: false, showTrigger: '#Img1' });
        });
    </script> </head> <body>
    <form id="form1" runat="server">
    <div>
    <asp:Button ID="Button1" runat="server" Text="Button" ValidationGroup="personal"
        Style="left: 459px; position: absolute; top: 171px" />
                <asp:Label ID="lblDate" runat="Server" Text="HireDate" style="left: 321px; position: absolute; top: 98px"></asp:Label>

    <asp:Label style="LEFT: 310px; POSITION: absolute; TOP: 133px" id="Label1" runat="Server" Text="DateofBirth"></asp:Label>
                <asp:TextBox ID="txtHiredate" runat="server" ValidationGroup="personal" Style="left: 397px;
                    position: absolute; top: 96px" />


                <div style="display: none;">
                    <img id="calImg" src="images/calendar.gif" alt="Popup" class="trigger" style="left: 564px;
                        position: absolute; top: 101px" />
                </div>

    <asp:TextBox ID="txtDateofBirth" runat="server" ValidationGroup="personal" Style="left: 398px;
        position: absolute; top: 131px" />
    <asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="validatehiredate"
        ControlToValidate="txtDateofBirth" ValidationGroup="personal" Display="Dynamic"
        Style="left: 596px; position: absolute; top: 132px">can not hire guy less than 18 yrs</asp:CustomValidator>
    <div style="display: none;">
        <img id="Img1" src="images/calendar.gif" alt="Popup" class="trigger" style="left: 568px;
            position: absolute; top: 136px" />
    </div>
    </form> </body> </html>

But when I open vs2005 solution in Vs2010 a message regarding web.config raises if I click on ok and run this is working fine. But if I create a new solution and working on this it is not showing the corresponding images.. Can any one help me..

  • 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-28T15:34:03+00:00Added an answer on May 28, 2026 at 3:34 pm

    Try as per below

     $('<%= txtHiredate.ClientID %>')
     $('<%= txtDateofBirth.ClientID %>')
    

    to

    $('#<%= txtHiredate.ClientID %>')
    $('#<%= txtDateofBirth.ClientID %>')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to ensure I have done all I can to configure a system's
I have done a little Django development, but it has all been in a
I have a treeview in wpf and I load it ok is all done
I have been creating an image gallery with jQuery, all is done. The images
I have created a bunch of movie clips which all have similar names and
I work for a software development company and we have around 100 people working
I have three classes that all have a static function called 'create'. I would
I'm sure we all have received the wonderfully vague Object reference not set to
I have a bunch of projects in parallel subdirectories that all have etc/lighttpd.conf files.
I have a MFC dialog with 32 CComboBoxes on it that all have the

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.