Click here to Skip to main content
15,905,323 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hii
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

1 solution

Hi Supriya,

You can find the html input box like this:

VB
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

insert-data-into-sql-server-using-vbnet





Don't forget to mark useful responses as Answer if they helped you towards a solution.
 
Share this answer
 
v2
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900