Click here to Skip to main content
11,581,510 members (64,526 online)
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 17: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)

  Print Answers RSS
0 OriginalGriff 340
1 Sergey Alexandrovich Kryukov 160
2 Frankie-C 105
3 RyanDev 84
4 virusstorm 84
0 OriginalGriff 1,273
1 Sergey Alexandrovich Kryukov 900
2 Abhinav S 617
3 F-ES Sitecore 500
4 Suvendu Shekhar Giri 433


Advertise | Privacy | Mobile
Web04 | 2.8.150603.1 | Last Updated 1 Apr 2013
Copyright © CodeProject, 1999-2015
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