Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
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 31-Mar-13 18:31pm

1 solution

Rate this: bad
good
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
 
insert-data-into-sql-server-using-vbnet
 

 

 
Don't forget to mark useful responses as Answer if they helped you towards a solution.
  Permalink  
v2
Comments
supriya931 at 1-Apr-13 4:06am
   
no it is not fetching the value from the inputbox
Deependra Khangarot at 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)



Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 1 Apr 2013
Copyright © CodeProject, 1999-2014
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