Click here to Skip to main content
15,867,686 members
Home / Discussions / C#
   

C#

 
AnswerRe: Accessing Serial Port Remotely Pin
monstale16-Jul-09 0:52
monstale16-Jul-09 0:52 
GeneralRe: Accessing Serial Port Remotely Pin
Liya Kebede16-Jul-09 2:07
Liya Kebede16-Jul-09 2:07 
GeneralRe: Accessing Serial Port Remotely Pin
monstale16-Jul-09 2:36
monstale16-Jul-09 2:36 
GeneralRe: Accessing Serial Port Remotely Pin
Liya Kebede2-Nov-09 0:47
Liya Kebede2-Nov-09 0:47 
GeneralRe: Accessing Serial Port Remotely Pin
Member 1247082419-Apr-16 5:03
Member 1247082419-Apr-16 5:03 
Questioncall dll on client side Pin
Member 435374515-Jul-09 21:15
Member 435374515-Jul-09 21:15 
QuestionOwn Report Printer - How to print out Source Code (syntax highlighting) Pin
akamper15-Jul-09 21:09
akamper15-Jul-09 21:09 
Questionuse dataset with case statement Pin
Mamphekgo Bahula15-Jul-09 20:54
Mamphekgo Bahula15-Jul-09 20:54 
Hi i populate dataset with data from uif table and one of the colum is marriage status which is integer so i want to you case statement where for example if marriage_status is 1 then it has to display single on detailsview.

here is my code

int MarriageStatus = (int)dataset.Tables["uif"].Rows[0]["marriage_stat"];
string status = Convert.ToString(MarriageStatus);
switch(MarriageStatus){
case 0:
status="Single";
break;
case 1:
status="Single";
break;
case 2:
status = "married";
break;
case 3:
status="Widowed";
break;
case 4:
status="Divorced";
break;
}

Mamphekgo

AnswerRe: use dataset with case statement Pin
Mycroft Holmes15-Jul-09 21:02
professionalMycroft Holmes15-Jul-09 21:02 
QuestionHow to use public int?!!?!!? windows form. Pin
dimo198215-Jul-09 20:39
dimo198215-Jul-09 20:39 
AnswerRe: How to use public int?!!?!!? windows form. Pin
ichiganboya15-Jul-09 20:44
ichiganboya15-Jul-09 20:44 
GeneralRe: How to use public int?!!?!!? windows form. Pin
dimo198216-Jul-09 6:42
dimo198216-Jul-09 6:42 
GeneralRe: How to use public int?!!?!!? windows form. Pin
Huxley Stronghead16-Jul-09 10:07
Huxley Stronghead16-Jul-09 10:07 
AnswerRe: How to use public int?!!?!!? windows form. Pin
Mycroft Holmes15-Jul-09 21:06
professionalMycroft Holmes15-Jul-09 21:06 
AnswerRe: How to use public int?!!?!!? windows form. Pin
Luc Pattyn15-Jul-09 23:58
sitebuilderLuc Pattyn15-Jul-09 23:58 
Questionhow can i develop a program in aspx format and use it in php site?!! Pin
Nafiseh Salmani15-Jul-09 20:16
Nafiseh Salmani15-Jul-09 20:16 
AnswerRe: How could I generate a custom search with C# Pin
Mycroft Holmes15-Jul-09 21:07
professionalMycroft Holmes15-Jul-09 21:07 
GeneralRe: How could I generate a custom search with C# Pin
Nafiseh Salmani15-Jul-09 21:13
Nafiseh Salmani15-Jul-09 21:13 
QuestionC# 3D Button UserControl (How to increase performance) Pin
ichiganboya15-Jul-09 20:10
ichiganboya15-Jul-09 20:10 
AnswerRe: C# 3D Button UserControl (How to increase performance) Pin
ichiganboya15-Jul-09 23:17
ichiganboya15-Jul-09 23:17 
QuestionUsing F2 F3 In Web application Pin
kKamel15-Jul-09 20:04
kKamel15-Jul-09 20:04 
QuestionHow to add a button in the standard buttons list of IE window? Pin
svt gdwl15-Jul-09 19:09
svt gdwl15-Jul-09 19:09 
QuestionNeed help. Pin
mjawadkhatri15-Jul-09 19:07
mjawadkhatri15-Jul-09 19:07 
AnswerRe: Need help. Pin
Abhijit Jana15-Jul-09 19:31
professionalAbhijit Jana15-Jul-09 19:31 
GeneralRe: Need help. Pin
mjawadkhatri15-Jul-09 19:37
mjawadkhatri15-Jul-09 19:37 

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.