Click here to Skip to main content
11,803,019 members (62,904 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET SQL-Server , +
hello everyone,

I am using .net2008,actually my problem is i m using ajax calander as well ajax auto complete in one web page form if i m using ajax autocomplete then ajaxcalender is not opening after click n if i remove autocomplete thn calender is working fine.

Is anyone share with me whats the main issue!!!!!

Thanks in Advance!!!!

Garima Gupta
Posted 2-May-13 2:02am
Rohan Leuva at 2-May-13 8:18am
I suspect you need textbox which should display calender on focus,right?
garimagupta66 at 2-May-13 8:23am
<form id="form1" runat="server">

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePageMethods="true">

<asp:AutoCompleteExtender ID="AutoComplete1" runat="server" TargetControlID="TextBox2"
MinimumPrefixLength="1" EnableCaching="true" CompletionSetCount="1" CompletionInterval="1000"

<%--<ajax:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" TargetControlID="txtCountry"
MinimumPrefixLength="1" EnableCaching="true" CompletionSetCount="1" CompletionInterval="1000" ServiceMethod="GetCountries" >

<div id="divwidth"></div>


<div class="section" id="profile-personal">
<div class="header">Book Domestic hotel
<br />
<asp:TextBox ID="TextBox2" runat="server">
<div class="content">
<dt>Check In:</dt>  

<asp:TextBox ID="TextBox8" runat="server" Font-Size="15px" >

<asp:ImageButton ID="img1" runat="server" ImageUrl="~/Images/calender.jpg" Width="25px" />
<asp:CalendarExtender ID="CalendarExtender1" runat="server" PopupButtonID="img1" PopupPosition="BottomRight" Format="yyyy-MM-dd" TargetControlID="TextBox8" >

<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Please Enter Date of Birth"
ControlToValidate="TextBox8" ForeColor="Red" ValidationGroup="submit" Font-Size="Small">
<%--<asp:CalendarExtender ID="CalendarExtender1" runat="server" PopupButtonID="img1"
PopupPosition="BottomLeft" Format="dd-MMM-yyyy " TargetControlID="TextBox8">

<dt>Check Out:<asp:TextBox ID="TextBox1" runat="server" Font-Size="15px" >

<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/calender.jpg" Width="25px" />
<asp:CalendarExtender ID="CalendarExtender2" runat="server" PopupButtonID="ImageButton1" PopupPosition="BottomRight" Format="yyyy-MM-dd" TargetControlID="TextBox1" >

<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please Enter Gender"
ControlToValidate="TextBox1" ForeColor="Red" ValidationGroup="submit" Font-Size="Small">

<asp:DropDownList ID="DropDownList1" runat="server">

Guest Details:


<div> Adults(12+Years)<div style=" margin-left:20px;">
<asp:DropDownList ID="DropDownList2" runat="server">
<div style=" margin-left:20px;">
<asp:DropDownList ID="DropDownList3" runat="server">


<br />
<br />
<br />
<br />

<br />
<asp:ImageButton ID="ImageButton2" runat="server" Width="80px" Height="40px"

This one i m using.........

plz share with me if i m doing something wrong...
Rohan Leuva at 2-May-13 8:35am
In above code what you expect at which line?or explain your target to make clear so that we can suggest some other ways also.
garimagupta66 at 3-May-13 2:45am
i got it the solution....actually i forgot to use ServicePath="~/autocomplete.asmx"

now its working fine.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 335
1 KrunalRohit 291
2 F-ES Sitecore 270
3 CPallini 270
4 Sergey Alexandrovich Kryukov 234
0 OriginalGriff 2,950
1 Maciej Los 1,910
2 KrunalRohit 1,862
3 CPallini 1,735
4 Richard MacCutchan 1,157

Advertise | Privacy | Mobile
Web02 | 2.8.151002.1 | Last Updated 2 May 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100