I want ajaxautocomplete extender to show grd

Posted by Sksamantaray under ASP.NET AJAX on 3/17/2012 | Points: 10 | Views : 917 | Status : [Member] | Replies : 5
Hi ,
I need ajax autocomplete extender to return a datatable .
descripton:
while you type characters the result has to be a multi column table:
--------------------------
A
--------------------------
Anand 25yrs cuttack orissa
Andy 32 bangalore Karnataka

Thanks,
Sanjay



Responses

Posted by: Balajikcp8 on: 3/23/2012 [Member] Starter | Points: 25

Up
0
Down
use autocompleteextender of ajax control toolkit

Sksamantaray, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sksamantaray on: 3/23/2012 [Member] Silver | Points: 25

Up
0
Down
Yes how to do it?


Thanks,
Sanjay

Sksamantaray, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Balajikcp8 on: 3/23/2012 [Member] Starter | Points: 25

Up
0
Down
<asp:TextBox ID="txtHotelName" runat="server"
AutoCompleteType="Disabled" AutoPostBack="True"></asp:TextBox>
<cc1:AutoCompleteExtender
ID="TextBox1_AutoCompleteExtender" runat="server"
Enabled="True"
TargetControlID="txtHotelName" FirstRowSelected="True"
CompletionListCssClass="autocomplete_completionListElement"
CompletionListItemCssClass="autocomplete_listItem"
CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
ServiceMethod="GetCompletionList" ServicePath="" UseContextKey="True"
DelimiterCharacters="">
</cc1:AutoCompleteExtender>

in code behind

<System.Web.Services.WebMethod(), System.Web.Script.Services.ScriptMethod()>
Public Shared Function GetCompletionList(ByVal prefixText As String, ByVal count As Integer) As String()

.........write your queries here and return ......................

End Function

Sksamantaray, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sksamantaray on: 3/23/2012 [Member] Silver | Points: 25

Up
0
Down
Thanks Balaji,
For replying.
I have done it for single column result.
Can you try to show the result in a gridview or multicolumn result.

Thanks,
Sanjay

Sksamantaray, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Balajikcp8 on: 3/23/2012 [Member] Starter | Points: 25

Up
0
Down
Please explain your scenario? Where you are going to use?

Sksamantaray, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response