Solved

From ComboBox - Passing value to Database

Posted on 2010-08-27
4
347 Views
Last Modified: 2013-11-27


I need to Pass - ComboBox Text to the Database.

Not the Id .. i need to pass actual value to the database.

Whats the syntax for fetching the value from ComboBox
0
Comment
Question by:chokka
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 33548018
0
 
LVL 17

Expert Comment

by:Zhaolai
ID: 33548114
If you mean the value actually displayed in the combobox, use ComboBox1.Text.
0
 

Expert Comment

by:kimapacible
ID: 33548134
Dim strActualValue as string
strActualValue = ComboBox1.text
0
 
LVL 18

Accepted Solution

by:
John (Yiannis) Toutountzoglou earned 500 total points
ID: 33549417
"If"  Your ComboBox is databound to a datatable you can also define a datarowview....
Dim drv as DataroWview =Ctype(Me.Combobox.SelectedItem,DataRowView)
'And for The Selected Text'

Dim SelText as String=drv.Item("YouColumnTableName")   'And Pass SelText to the Database...

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Best book for Internet security 4 52
What are MicroServices? 4 67
Call to SQL server times out 5 55
How does GeoJson relates to Leaflet and Mapbox? 4 48
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question