ms access - c# KeyValuePair and database -


i doing c# application project whereby receptionist able book rooms customers. had created database whereby looks this

id  roomtype     1   nap              2   nap              3   nap              4   nap              5   nap              6   meeting_small    7   meeting_small    8   meeting_small    9   meeting_small    10  meeting_small    11  meeting_big      12  meeting_big      13  meeting_big      14  meeting_big      15  meeting_big      

also, use keyvaluepair link access database through button. receptionist have click on button select room. when button selected, database show that particular room taken.

i tried code coding under button.

keyvaluepair<string, string> selectedroom; selectedroom = new keyvaluepair<string,string>("nap", "1"); 

however, not sure if possible. can me out? thank you

i had removed room number out


Comments

Popular posts from this blog

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -