p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP.NET 4 : in C# and VB (http://p2p.wrox.com/forumdisplay.php?f=560)
-   -   How to create textbox with calendar control? (http://p2p.wrox.com/showthread.php?t=84749)

Ranveer@2468 August 17th, 2011 12:27 AM

How to create textbox with calendar control?
 
Hi I would like to create a text with popup calendear facility. I tried it many times and search in google also but not got exact solution.
You can check the text box with calendar control by following below link

http://www.asp.net/ajaxlibrary/AjaxC.../calendar.aspx

Pls guide me to create such textbox.
Regards
Ranveer..........

Emma Krystal August 17th, 2011 01:04 AM

Calendar Extender by Ajax
 
Hi Ranveer,

U need ToolKitScriptManager to use Calender Extender on the textbox..
Jus drag the textbox and the drag calenderextender into it...

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:CalendarExtender ID="TextBox1_CalendarExtender" runat="server"
TargetControlID="TextBox1">
</asp:CalendarExtender>

Cheers
Emma[:)]

Abhishek Kumar August 17th, 2011 04:54 AM

Textbox with calender extender is not working?
 
I have downloaded ajax toolkit and installed it sucessfully.

and put the following code


<div>
<asp:TextBox
ID="TextBox1"
runat="server"
width="300pt" />
<asp:ImageButton
ID="btnCalenderPopup"
Width="16" Height="16"
runat="server"
ImageUrl="~/images/calender.bmp"
CausesValidation="False" />
<ajaxToolkit:CalendarExtender
ID="CalendarExtender1"
runat="server"
TargetControlID="TextBox1"
PopupButtonID="btnCalenderPopup"
Format="dd/MM/yyyy" />

</div>



But I am getting this error. Pls check it...


Error Creating Control - CalendarExtender1This control cannot be displayed because its TagPrefix is not registered in this Web Form.

chintands January 1st, 2013 06:52 AM

Error Creating Control - CalendarExtender1This control cannot be displayed because it
 
Hi Abhishek,

to slove error

Error Creating Control - CalendarExtender1This control cannot be displayed because its TagPrefix is not registered in this Web Form.

You have to add
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

on the top of .aspx page

juliarvil January 1st, 2013 03:37 PM

Quote:

Originally Posted by chintands (Post 288568)
Hi Abhishek,

to slove error

Error Creating Control - CalendarExtender1This control cannot be displayed because its TagPrefix is not registered in this Web Form.

You have to add
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

on the top of .aspx page

i dunno but i have done all the thing, why can't i do it. it's still a mess

Bill sharing app for roommates and Rent Room Calculator


All times are GMT -4. The time now is 08:08 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.