Solved

Show "AutoComplete" suggestion list on Button Click - AJAX (ASP.NET)

Posted on 2010-09-22
4
631 Views
Last Modified: 2012-05-10
Hi,

I have the following items on my web form:

1) TextBox
2) AutoCompleteExtender
3) Button

By default, if i type something in the "TextBox" then "AutoCompleteExtender" will show the suggestions. I want the suggestions list to show up when i clicked on "Button" not by default when i type in "TextBox". Can you please provide me the code for this functionality. Similary for closing the suggestion list also.

Thanks
0
Comment
Question by:milani_lucie
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:existenz2
ID: 33734679
Disable the AutoCompleteExtender by default and only enable it by setting the Enabled property when the button is clicked.
0
 

Author Comment

by:milani_lucie
ID: 33735032
Can you please provide me "JavaScript" code to do this ? Thanks
0
 
LVL 14

Accepted Solution

by:
existenz2 earned 500 total points
ID: 33743372
In your aspx for the AutoCompleteExtender tag:

Enabled="False"

and in your codebehind in the event from the button:

AutoCompleteExtender1.Enabled = true;

Or better said <ID of AutoCompleteExtender>.Enabled = true;
0
 

Author Closing Comment

by:milani_lucie
ID: 33765872
Can we do with "JavaScript" ?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
A short film showing how OnPage and Connectwise integration works.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now