Click here to Skip to main content
15,909,325 members
Home / Discussions / C#
   

C#

 
QuestionDetecting the Mouse Wheel on a ListView Control Pin
Darryl Borden19-Nov-08 23:34
Darryl Borden19-Nov-08 23:34 
AnswerRe: Detecting the Mouse Wheel on a ListView Control Pin
DaveyM6919-Nov-08 23:48
professionalDaveyM6919-Nov-08 23:48 
AnswerRe: Detecting the Mouse Wheel on a ListView Control Pin
Seraph_summer20-Nov-08 3:42
Seraph_summer20-Nov-08 3:42 
AnswerRe: Detecting the Mouse Wheel on a ListView Control Pin
DaveyM6920-Nov-08 4:32
professionalDaveyM6920-Nov-08 4:32 
QuestionProcessor ID Pin
Syed Shahid Hussain19-Nov-08 22:21
Syed Shahid Hussain19-Nov-08 22:21 
AnswerRe: Processor ID Pin
Samer Aburabie19-Nov-08 22:31
Samer Aburabie19-Nov-08 22:31 
AnswerRe: Processor ID Pin
#realJSOP19-Nov-08 23:40
professional#realJSOP19-Nov-08 23:40 
QuestionGetting data from database with ado.net with more conditions? Pin
Matjaz-xyz19-Nov-08 20:48
Matjaz-xyz19-Nov-08 20:48 
Hi.

I'm building an application which has to return a value from a database, conditioning on two things.

The database looks like:

|Workplace|
------------------------
ID | Description | Morning | Afternoon | Evening


Description: Description of the workplace
Morning: The hourly wage on this workplace
Afternoon: The hourly wage on this workplace
Evening: The hourly wage on this workplace

Example of a database:

1 | Warehouse | 1,3 | 3 | 3,7
2 | IT | 2,5 | 4 | 5
3 | Maintance | 2 | 2,5 | 7


Ok, we've cleared about the database... now lets got to the program.

In the app. the user must choose When did he work and when. That means, he chooses the ID of the workplace and when did he work.
The app. must then return the value of selected workplace and the wage on the selected time he worked. Thats the problem.

A friend of mine said, that in VB 6 and ADO (not .NET), it was quite simple. You could use the select string and then something with recordset.recordcount and then if recordset field value = ...

I googled and googled and in the end i didnt know what i was googleing Smile | :) The result - found nothing.

Again, im turning too the CodeProject community for help...

Thanks for taking your time to read and i hope you can help Smile | :)

Regards,
Matjaž

Força Barça!

AnswerRe: Getting data from database with ado.net with more conditions? Pin
Ashfield19-Nov-08 21:43
Ashfield19-Nov-08 21:43 
GeneralRe: Getting data from database with ado.net with more conditions? Pin
Matjaz-xyz19-Nov-08 22:24
Matjaz-xyz19-Nov-08 22:24 
GeneralRe: Getting data from database with ado.net with more conditions? Pin
Ashfield19-Nov-08 23:46
Ashfield19-Nov-08 23:46 
QuestionStringFormat in TextBox Pin
chetanN19-Nov-08 20:45
chetanN19-Nov-08 20:45 
AnswerRe: StringFormat in TextBox Pin
Samer Aburabie19-Nov-08 22:46
Samer Aburabie19-Nov-08 22:46 
GeneralRe: StringFormat in TextBox Pin
chetanN19-Nov-08 23:07
chetanN19-Nov-08 23:07 
QuestionFind all ASCX files in a ASPX page Pin
buntynow19-Nov-08 20:21
buntynow19-Nov-08 20:21 
Questionselect max(string) Pin
Zeyad Jalil19-Nov-08 19:47
professionalZeyad Jalil19-Nov-08 19:47 
AnswerRe: select max(string) Pin
Ashfield19-Nov-08 21:45
Ashfield19-Nov-08 21:45 
AnswerRe: select max(string) Pin
Parwej Ahamad19-Nov-08 22:03
professionalParwej Ahamad19-Nov-08 22:03 
GeneralRe: select max(string) Pin
Zeyad Jalil19-Nov-08 22:11
professionalZeyad Jalil19-Nov-08 22:11 
GeneralRe: select max(string) Pin
Parwej Ahamad19-Nov-08 22:28
professionalParwej Ahamad19-Nov-08 22:28 
QuestionProblem with JavaScript Date process Pin
kheer19-Nov-08 19:36
kheer19-Nov-08 19:36 
AnswerRe: Problem with JavaScript Date process Pin
leppie20-Nov-08 0:23
leppie20-Nov-08 0:23 
AnswerRe: Problem with JavaScript Date process Pin
Guffa20-Nov-08 0:45
Guffa20-Nov-08 0:45 
QuestionDisplay data from ms access database..... Pin
raj23136219-Nov-08 19:35
raj23136219-Nov-08 19:35 
AnswerRe: Display data from ms access database..... Pin
Matjaz-xyz19-Nov-08 20:38
Matjaz-xyz19-Nov-08 20:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.