Click here to Skip to main content
15,917,328 members
Home / Discussions / C#
   

C#

 
GeneralRe: Displaying pixel values Pin
Soulblazer28-Jun-05 20:36
Soulblazer28-Jun-05 20:36 
GeneralRe: Displaying pixel values Pin
Christian Graus28-Jun-05 20:41
protectorChristian Graus28-Jun-05 20:41 
GeneralRe: Displaying pixel values Pin
Soulblazer28-Jun-05 20:48
Soulblazer28-Jun-05 20:48 
GeneralRe: Displaying pixel values Pin
Christian Graus28-Jun-05 20:49
protectorChristian Graus28-Jun-05 20:49 
GeneralRe: Displaying pixel values Pin
Soulblazer28-Jun-05 20:57
Soulblazer28-Jun-05 20:57 
GeneralRe: Displaying pixel values Pin
Christian Graus29-Jun-05 11:24
protectorChristian Graus29-Jun-05 11:24 
GeneralRe: Displaying pixel values Pin
Anonymous29-Jun-05 15:00
Anonymous29-Jun-05 15:00 
GeneralSQL.. please help.. Pin
fire8528-Jun-05 17:43
fire8528-Jun-05 17:43 
i am doing a quiz web page using visual studio.net
i want to show 1 question per page
but i having trouble displaying the row of data i want.

For my database i created, i having 4 columns
- QnC --- Contains my questions and choices (text)
- QID --- questions identity number
- Choice --- choices identity number
- Ans --- answer (not that important, i havent reach this part)

this is my code for sql:
Cmd.CommandText = "SELECT [QnC] FROM Quiz " +
"WHERE [Choice]= " + i + " and " + "[QID]= " + i + "";

"i" is an integer i declared.

i wanna to display the question and choices but i only get to display question even if i use this code:

Cmd.CommandText = "SELECT [QnC] FROM Quiz " +
" WHERE [Choice]= " + i + "";

For this part the column is empty for the row contain questions.
Please tell me where i goes wrong...

fire85

GeneralRe: SQL.. please help.. Pin
Christian Graus28-Jun-05 17:49
protectorChristian Graus28-Jun-05 17:49 
GeneralRe: SQL.. please help.. Pin
fire8528-Jun-05 18:00
fire8528-Jun-05 18:00 
GeneralRe: SQL.. please help.. Pin
Christian Graus28-Jun-05 18:04
protectorChristian Graus28-Jun-05 18:04 
GeneralRe: SQL.. please help.. Pin
fire8528-Jun-05 18:09
fire8528-Jun-05 18:09 
GeneralRe: SQL.. please help.. Pin
Christian Graus28-Jun-05 18:11
protectorChristian Graus28-Jun-05 18:11 
GeneralRe: SQL.. please help.. Pin
fire8528-Jun-05 18:20
fire8528-Jun-05 18:20 
GeneralRe: SQL.. please help.. Pin
Christian Graus28-Jun-05 18:28
protectorChristian Graus28-Jun-05 18:28 
GeneralRe: SQL.. please help.. Pin
fire8528-Jun-05 18:50
fire8528-Jun-05 18:50 
Questionuser control Collection Editor ? Pin
CiNN28-Jun-05 13:07
CiNN28-Jun-05 13:07 
AnswerRe: user control Collection Editor ? Pin
Christian Graus28-Jun-05 13:36
protectorChristian Graus28-Jun-05 13:36 
GeneralRe: user control Collection Editor ? Pin
CiNN28-Jun-05 21:17
CiNN28-Jun-05 21:17 
GeneralRe: user control Collection Editor ? Pin
Christian Graus29-Jun-05 11:25
protectorChristian Graus29-Jun-05 11:25 
Generalwaitforexit doesn't wait Pin
thepersonof28-Jun-05 7:58
thepersonof28-Jun-05 7:58 
GeneralRe: waitforexit doesn't wait Pin
Nick Parker28-Jun-05 9:51
protectorNick Parker28-Jun-05 9:51 
GeneralRe: waitforexit doesn't wait Pin
thepersonof28-Jun-05 10:04
thepersonof28-Jun-05 10:04 
GeneralRe: waitforexit doesn't wait Pin
Dave Kreskowiak28-Jun-05 15:41
mveDave Kreskowiak28-Jun-05 15:41 
GeneralRe: waitforexit doesn't wait Pin
thepersonof29-Jun-05 8:06
thepersonof29-Jun-05 8:06 

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.