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

Properly scaling the UI canvas for android phone's
IS this the right way to automate the user defined service import in Built in DI in asp.net-core
entity framework core visualize entity
ASP.net: Concurrent file upload Fails after N number of large uploads
UserManager used with different stores (UserStore, UserEmailStore, UserClaimStore, UserLockoutStore etc.)
Modern approach to 'on error goto [catch-all] label' in C#
C sharp : Object name is invalid
SilverLight Web camera Image Quality
Datagrid error - Viemodel property can't be populated
Using GroupBy in LINQ [duplicate]
Post Stream in ASP.NET Core Web Api
AngleSharp error while making the async calls
Delete xml file after create a Visual Studio Setup Project
Measuring time between keys clicked
C# draw circle around label [closed]
Entity Framework - Separate Model For Each Table is necessary?

Categories

HOME
max
autohotkey
internet-explorer
postgresql
redux
intellij-idea
sip
phantomjs
file-upload
liquibase
okhttp3
salesforce-lightning
query-string
overrides
opengl-es
psexec
handlebars.js
webpack-dev-server
sahi
rename
http-status-codes
browsermob
opendaylight
exchange-transport-agents
dompdf
owncloud
simd
indri
gpo
v4l2
apdu
suitescript
oracle10g
pydub
ballerinalang
adobe-captivate
ocl
akamai
directions
eclipse-jdt
favorites
mootools
wit-ai
respect-validation
outlook-2010
form-fields
queryover
usernotifications
cowboy
azure-web-roles
file-descriptor
result
amazon-fire-tv
anonymous-function
jsfl
openxava
ear
bioperl
sp
seyren
aot
liferay-ide
critical-section
google-scholar
glade
eclipse-mars
particle-system
normalisation
recurring
qtruby
code-translation
oryx
instabug
github-for-mac
ios8-share-extension
sdkman
dnvm
first-order-logic
tess4j
data-representation
strcpy
conkeror
touch-typing
drools-guvnor
agent-based-modeling
ios-enterprise
nest-initiative
xps
xtify
record-locking
android-library
pyxplot
outlook-object-model
msbuild-task
nude.js
virtual-printer
recess
peoplepicker
auto-compile
cinder
arraycollection
datarelation
projectgen
stackless

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