Click here to Skip to main content
15,898,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
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
Comments
Thanks7872 2-May-13 8:18am    
I suspect you need textbox which should display calender on focus,right?
garimagupta66 2-May-13 8:23am    
<body>
<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"
ServiceMethod="GetCompletionList">


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



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


<div>

<div class="section" id="profile-personal">
<div class="header">Book Domestic hotel
</div>
<div>
<br />
<asp:TextBox ID="TextBox2" runat="server">
</div>
<div class="content">
<dl>
<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">

</dt>
<dt>
Rooms:      
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>1
<asp:ListItem>2
<asp:ListItem>3
<asp:ListItem>4

</dt>
<dt>
Guest Details:

<dd>
</dd>

<div> Adults(12+Years)<div style=" margin-left:20px;">
<asp:DropDownList ID="DropDownList2" runat="server">
<asp:ListItem>1
<asp:ListItem>2
<asp:ListItem>3
<asp:ListItem>4
</div></div>
<div>Childreen(0-11Years)
<div style=" margin-left:20px;">
<asp:DropDownList ID="DropDownList3" runat="server">
<asp:ListItem>0
<asp:ListItem>1
<asp:ListItem>2
<asp:ListItem>3
<asp:ListItem>4
<asp:ListItem>5
</div>
</div>
</dt>

<dt>




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

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

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

plz share with me if i m doing something wrong...
Thanks7872 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 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900