how create autotext box in asp.net without usind ajax autotext box control

Posted by Sagarp under ASP.NET on 1/15/2010 | Views : 3838 | Status : [Member] | Replies : 7
HI


i will try to create auto text box for country when i will type first letter of any country that letter related county name list pop but without using Ajax auto text box control.plz reply me



Thanks
sagarp

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/



Responses

Posted by: Vuyiswamb on: 1/15/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Try these Links

http://www.xcite.ch/blog/?p=63


or you can store the Countries in the Database but there will be more work than using Ajax

Thank you for Posting at Dotnetfunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

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

Posted by: Sagarp on: 1/15/2010 [Member] Bronze

Up
0
Down
Hi

i have store country name in XML file not in data base


thanks
sagarp

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

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

Posted by: Abhi2434 on: 1/15/2010 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down
That will be even better...

Use LINQ to get the Country name and send the xml through XmlHttpRequest object to the client.

In the client side, parse the ResponseXml and populate in the combobox.

I have done this a lot of time.. It is really not a big deal.

:)

www.abhisheksur.com

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

Posted by: Sagarp on: 1/15/2010 [Member] Bronze

Up
0
Down
send me link or code

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

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

Posted by: Rcsprakash on: 1/15/2010 [Member] Starter

Up
0
Down
use ajax auto complete extender control
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:ScriptManager ID="ScriptManager1" runat="server">
<Services>
<asp:ServiceReference Path="~/autocomplete.asmx" />
</Services>
</asp:ScriptManager>
<ajaxToolkit:AutoCompleteExtender BehaviorID="AutoCompleteEx" ID="atAutoComplete" runat="server" TargetControlID="txtEventLocation" CompletionInterval="100"
ServicePath="autocomplete.asmx" ServiceMethod="GetCompletionList" MinimumPrefixLength="2" CompletionListCssClass="autocomplete_completionListElement"
CompletionListItemCssClass="autocomplete_listItem" CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
EnableCaching="true" DelimiterCharacters="," CompletionSetCount="200" CompletionListElementID="autocompleteDropDownPanel" UseContextKey="true"></ajaxToolkit:AutoCompleteExtender>


put the code in your page. create webservice named autocomplete.asmx
the webservice has a method named as "GetCompletionList". This method return the values and placed it in your text box like a list. then you can choose the name you want. i will attached the ajax dll and sample webservice for you.
 Download source file

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

Posted by: Sagarp on: 1/15/2010 [Member] Bronze

Up
0
Down
without using ajax auto complete extender control i have create using code

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

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

Posted by: Mehulthakkar1 on: 1/18/2010 [Member] Starter

Up
0
Down
Hi,

Without ajax then you can use callback in asp.net. it will work for you.

Thanks

Mehul Thakkar

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

Login to post response