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

Deselecting ListBox item in code without firing event
Deploying a Click-Once Application
Entity Framework 6 Guid generated null?
WPF Binding Property not found
DataGrid binding column
Many-to-many with exposed join table via code first
Coding multiple Piezos in C#
Getting CS0246 when making ASP.NET-web application but MySql.Data is added
Unable to make Save Dialog Save file
Remove part of String inside List<string>
using Rest client and getting statuscode 406 not acceptable
IdentityUser vs my custom user table
Custom pagination with stored procedure in asp.net
Moxtra Integration Using REST API
ERROR : A field initializer cannot reference the non-static field, method, or property
Good practice to avoid duplicate records

Categories

HOME
azure-documentdb
ssh
cxf
ebay-api
nltk
mailchimp
jpql
aws-sdk-cpp
ng2-charts
opengrok
console-application
hql
versioning
ofbiz
google-calendar-api3
legend-properties
glibc
datazen-server
polybase
gnu-screen
onclicklistener
oracle-golden-gate
ckeditor4.x
formtastic
launchd
git-submodules
language-detection
restler
imageprocessor
campaign-monitor
latency
ssdp
java-5
codepen
stream-socket-client
spring-cloud-bus
openxava
appcmd
gige-sdk
jenkins-docker
xamarin-test-cloud
timefield
qudpsocket
android-music-player
blackberry-webworks
android-tabs
boost-range
rowname
hoare-logic
sprockets
hfp
aws-kms
razorengine
python-rq
periodic-processing
yfiles
recode
vanilla-forums
eggplant
ultraedit
applinks
fiware-health
uiblureffect
apache-pivot
novell
conditional-comments
tigase
oxygenxml
rpt
telerik-appbuilder
cs193p
banana-pi
jsmpp
infor-eam
node-mongodb-native
kuka-krl
grunt-wiredep
myrrix
objectdatasource
stringstream
google-checkout
symbian3
architectural-patterns
ftpwebrequest
qt5.1
tasklist
certificate-revocation
beep
diazo
yii-cactiverecord
subdirectories
iphone-maps
database-agnostic
webdb
mysql-pconnect

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