c#


Acessing columns using dropdownlist items


I have two dropdownlists displaying currency:
1:Euro 1:Euro
2:Dollar 2:Dollar
3:Pound 3:Pound
And a table
CurrencyID CurrencyName Rupee Euro Dollar Pound
----------- ------------ ---------------------- ---------------------- ---------------------- ----------------------
1 Rupee 1 0.008 0.009 0.007
2 Euro 121.3 1 1.08 0.84
3 Dollar 111.4 0.91 1 0.77
4 Pound 143.6 1.18 1.28 1
Is it possible to insert data using an insert statment and ddl.Text?
Something like, `INSERT INTO table WHERE ddl.SelectedItem.Text = Currencyname and ddl2.SelectedItem = (other row)
Apologies, I figures it out. Its been along day
UPDATE CurrencyTbl
SET Euro = '1'
WHERE CurrencyName='Euro';

Related Links

Storing LINQ queries as variables/constants?
Comparing lists of integers and then ordering them based on similarity.
XPathResultType definition error?
Bingbot throwing Validation issues with Request in ASP.NET / IIS7
AspxGridView initially load empty
Is this a bug? Float operation being treated as integer
Month swaps to Day, Day swaps to Month when loading View
Determine power usage programmatically in Windows?
How to sort non-uniform strings that contain numeric values?
Event Handling in WPF
WCF Time Out Issue
control visibility of fields per entity instance with WCF Data Service and Entity Framework
An outgoing call cannot be made since the application is dispatching an input-synchronous call
Changing one picture to another onclick in vb.net
Basic WPF validation
How to work with Enums with NHibernate?

Categories

HOME
asterisk
gulp
algolia
cluster-analysis
grpc
webvr
android-ndk
latex
skypedeveloper
jquery-plugins
mingw
powerquery
python-3.4
install
markdown
sitemap
google-api-oauth
yacc
obd-ii
olap
core-data
elastalert
game-engine
owncloud
passbook
android-wifi
vala
functional-dependencies
ckeditor4.x
uibarbuttonitem
emr
sphinx4
ipython-parallel
folder
edirectory
andengine
key-bindings
imdb
n1ql
zimbra
certbot
flex3
oracle-bpm-suite
redhat-brms
framebuffer
file-descriptor
smooth-streaming
spring-ide
serverless-architecture
openidm
audio-fingerprinting
playframework-1.x
htop
dynatable
codesniffer
msiexec
qt3d
geokit
init
objectify
laterjs
aws-kms
phpdesigner
wizard
sdkman
transbase
personality-insights
jain-sip
jsoncpp
dcg
eula
vectordrawable
avd
conkeror
jsonmodel
illegalargumentexception
xmlserializer
opencobol
pidgin
cvi
mixradio
boofcv
node-amqp
ia-32
android-library
php-gettext
beep
httppostedfilebase
cinder
lgpl
mediastreamsource
wtsapi32

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App