473,396 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

click on text box show date without using button

in asp. net i want that i click on textbox and calander come,and another problem is how to tab my textbox means pressing enter it goes to next texbox automatic
May 23 '12 #1
3 15226
in .NET things work off of events and event handlers. Try implementing the _OnClick() event for your text box. When you create the textbox on your form double click the text box to generate the function that handles the event. Hope this helps.
May 23 '12 #2
Frinavale
9,735 Expert Mod 8TB
You can use the calendar control in the ASP.NET Ajax Control Toolkit. This tool kit is free and has quite a few other useful controls as well.

Or you could use a bit of JavaScript to set the display style of a calendar control during the OnClick event of the TextBox.

-Frinny
May 23 '12 #3
Hi brother this is very easy task using jquery. Here is the code:
Expand|Select|Wrap|Line Numbers
  1. !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.  
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.  
  5. <head runat="server">
  6.  
  7.     <title></title>
  8.  
  9.     <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js" type="text/javascript"></script>
  10.  
  11.     <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js" type="text/javascript"></script>
  12.  
  13. <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css" type="text/css" media="all" />
  14.  
  15.  
  16.  
  17. <script type="text/javascript">
  18.  
  19.     $(function () {
  20.  
  21.         $("#<%= TextBox1.ClientID %>").datepicker();
  22.  
  23.     });
  24.  
  25. </script>
  26.  
  27. </head>
  28.  
  29. <body>
  30.  
  31.     <form id="form1" runat="server">
  32.  
  33.     <div>
  34.  
  35.     <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
  36.  
  37.     </div>
  38.  
  39.     </form>
  40.  
  41. </body>
  42.  
  43. </html>
And the referal link contains the live demo as well which will help you alot in this context.
http://www.aspxtutorial.com/post/201...x-control.aspx
May 26 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

31
by: wallster | last post by:
please keep the flaming to a minimum (a bucket of water is next to me) but I have a question someone here might be able to explain in basic terms for a dunce like me. I helped a friend put...
3
by: Bruno BAGUETTE | last post by:
Hello, I'm looking for a way to convert a unix timestamp to a PostgreSQL date without using ::abstime which seems to be deprecated. Currently, I do that query : levure=> select...
1
by: kgatchell2001 | last post by:
Hi, I am a beginner working on a database to manage clients, payroll, station assignments, etc. I have created a query which calculates age based on subtracting the date of birth from the current...
3
by: Alan Silver | last post by:
Hello, I have an app where the user needs to fill in details about an event, including the date and time of the event. I want a clean way to allow them to pick the date and time. In the old days...
5
by: Wonder | last post by:
How can I create or use the msgobx to show a message without a default button. The user has explicity to click on the button, so the msgbox closes it. Thanks,
1
by: rgould | last post by:
Hi, Can anyone help please? select notefield, modifiedon FROM Table1 WHERE id = '100426' and (statusfield like '%criteria1%' OR statusfield like '%criteria2%')
7
by: thebarefootnation | last post by:
Hi, I have created an access db that I would like to secure. The database will exist on a shared drive and be used at a number of different locations hence the reason to secure the database. ...
18
by: wizdom | last post by:
Help - change text on click - text has another onclick inside with php variables ---------- I think what I'm trying to do is simple. I have a 2 buttons on a page. 1 button allows a thread of...
1
by: thelouvre | last post by:
I have a little program here that I think would simulate something close to what I'm trying to do. I'm assuming if I can make it work, I can get the big stuff to work. I have a form, that basically...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.