Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 3:02am
Comments
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
   
<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...
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 Maciej Los 295
1 OriginalGriff 273
2 Aajmot Sk 234
3 Marcin Kozub 205
4 Richard MacCutchan 200
0 OriginalGriff 7,903
1 Sergey Alexandrovich Kryukov 7,127
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,820


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 2 May 2013
Copyright © CodeProject, 1999-2014
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