We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to obtain the selected value in AutoComplete from code behind?

Platform: ASP.NET Web Forms |
Control: AutoComplete |
Published Date: September 8, 2014 |
Last Revised Date: May 7, 2019 |
Product Version: 12.3.0.36
Tags: autocomplete

Description

You can retrieve the selected value of the AutoComplete Textbox from Code Behind.

Solution

In order to render the value of AutoComplete from code behind, use Value attribute that holds the selected value of AutoComplete control. Here in “this.AutoComplete.Value”, AutoComplete is the id of the control. The button click event is used for retrieving the AutoComplete selected value. You can refer to the following code example.

CS 

protected void btn_Click(object Sender, Syncfusion.JavaScript.Web.ButtonEventArgs e)
        {
            this.ACtext.Text = this.AutoComplete.Value;
        }

 

2X faster development

The ultimate ASP.NET Web Forms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon