How to set calendar in textbox in asp.net C#
As pervious we have seen How to set calendar intextbox in asp.net using jquery but if want to called calendar pure by asp.net
control with c# then you can use this .Both are good and no problem with both
code so you can use with you convenient .
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:ImageButton ID="ImageButton1" runat="server" Height="17px"
ImageUrl="~/image/calender.jpg" onclick="ImageButton1_Click"
Width="21px"
/>
<asp:Calendar ID="Calendar1" runat="server"
onselectionchanged="Calendar1_SelectionChanged" Visible="False">
</asp:Calendar>
</div>
C# Code:-
protected void ImageButton1_Click(object
sender, ImageClickEventArgs e)
{
Calendar1.Visible = true;
}
protected void Calendar1_SelectionChanged(object sender, EventArgs
e)
{
TextBox1.Text =
Calendar1.SelectedDate.ToShortDateString();
Calendar1.Visible = false;
}
How to set calendar in textbox in asp.net C#
Reviewed by NEERAJ SRIVASTAVA
on
7:38:00 PM
Rating:

nice post keep it up
ReplyDeleteasp.net training in jaipur
THNK YOU FOR THE POST..
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteVery Informative Post..Thanks A lot..Found it much helpful.:)
ReplyDeleteThat was kinda easy to create, thanks, love it. I like to experiment with text boxes from time to time with http://charts.poweredtemplate.com/powerpoint-diagrams-charts/ppt-text-boxes/0/index.html, that is really fun.
ReplyDeleteWonderful post. happy to visit your blog. Thanks for sharing.
ReplyDeleteseo training center in chennai
thank a lot its working perfectly
ReplyDeleteThanks for sharing the information and keep updating us.This information is really helpful to you.
ReplyDeleteSEO Training in Chennai | SEO Course in Chennai | SEO Training Chennai
Amazing guide :)
ReplyDeleteRegards,
SEO Course in Chennai|SEO Training Institute in Chennai
Digital Marketing is a kind of marketing strategy that relies on electronic medium like television, internet and mobile in promoting a product. It delivers incredible result to the business owners to boost their business online presence and enjoy maximum leads. Digital Marketing Training in Chennai | Digital Marketing Course in Chennai
ReplyDeleteI am not getting calender near text box
ReplyDeleteThis is excellent information. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
ReplyDeleteIos training in chennai
Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
ReplyDeletejava training in bangalore