Click here to Skip to main content
13,191,400 members (79,323 online)
Rate this:
Please Sign up or sign in to vote.
See more:
i am using html input box for crating the autosuggest box it will work but i did not find how to save the selected value from the list in the database form the input box .
can any one help me
Posted 31-Mar-13 17:31pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Hi Supriya,

You can find the html input box like this:

        Dim SourceTextBox As TextBox
        SourceTextBox = CType(FindControl("search_input"), TextBox)

Now you can use SourceTextBox.Text to get selected value and add this to database.

To insert this selected value you can follow below links:

step-by-step procedure to INSERT record to SQL server


Don't forget to mark useful responses as Answer if they helped you towards a solution.
supriya931 1-Apr-13 4:06am
no it is not fetching the value from the inputbox
Deependra Khangarot 1-Apr-13 6:58am
Please add line of code you are using and front end code also.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171017.1 | Last Updated 1 Apr 2013
Copyright © CodeProject, 1999-2017
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