Click here to Skip to main content
15,913,145 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to select all table names Pin
albCode10-Jun-06 0:52
albCode10-Jun-06 0:52 
QuestioncomboBox Pin
andrei_dalcu10-Jun-06 0:02
andrei_dalcu10-Jun-06 0:02 
AnswerRe: comboBox Pin
albCode10-Jun-06 0:14
albCode10-Jun-06 0:14 
AnswerRe: comboBox Pin
Nafiseh Salmani10-Jun-06 22:49
Nafiseh Salmani10-Jun-06 22:49 
QuestionOpen/Save word documen in the server Pin
Member 22716559-Jun-06 22:08
Member 22716559-Jun-06 22:08 
AnswerRe: Open/Save word documen in the server Pin
Guffa9-Jun-06 23:22
Guffa9-Jun-06 23:22 
Questionradio button in windows form..urgt plzz.. Pin
r_e_h_a_n9-Jun-06 20:09
r_e_h_a_n9-Jun-06 20:09 
AnswerRe: radio button in windows form..urgt plzz.. Pin
Christian Graus9-Jun-06 20:36
protectorChristian Graus9-Jun-06 20:36 
r_e_h_a_n wrote:
string idata = "insert into db1 values('"+txtID.Text+"','"+rbmale.Text+"','"+rbfemale.Text+"')";


Well, your approach to database development will never scale to real world apps, but I guess it's fine for now. You're passing the text of both radio buttons to the database. It does not surprise me that you don't have three fields to save against. You probably want something like this:

string idata = "insert into db1 values('"+txtID.Text+"','" + rbmale.Checked ? "M" " "F"+"')";

This stores M or F, depending on if rbMale is checked or not.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
AnswerRe: radio button in windows form..urgt plzz.. Pin
malikjhangirahmed@hotmail.com10-Jun-06 8:53
malikjhangirahmed@hotmail.com10-Jun-06 8:53 
QuestionSmall Question about Remoting Pin
Alexandr Sergeevich Ilyin9-Jun-06 19:49
Alexandr Sergeevich Ilyin9-Jun-06 19:49 
QuestionIssue with ClickOnce and publishing to a http site Pin
Raffi Basmajian9-Jun-06 19:18
Raffi Basmajian9-Jun-06 19:18 
AnswerRe: Issue with ClickOnce and publishing to a http site Pin
g00fyman10-Jun-06 15:19
g00fyman10-Jun-06 15:19 
GeneralRe: Issue with ClickOnce and publishing to a http site Pin
Raffi Basmajian10-Jun-06 16:31
Raffi Basmajian10-Jun-06 16:31 
QuestionInserting BLOB into MySQL using ODBC in C# Pin
nagramana9-Jun-06 19:15
nagramana9-Jun-06 19:15 
Questionsolution tree access + custom project [modified] Pin
g00fyman9-Jun-06 17:03
g00fyman9-Jun-06 17:03 
AnswerRe: solution tree access + custom project Pin
Ed.Poore10-Jun-06 3:32
Ed.Poore10-Jun-06 3:32 
GeneralRe: solution tree access + custom project Pin
g00fyman10-Jun-06 15:17
g00fyman10-Jun-06 15:17 
GeneralRe: solution tree access + custom project Pin
Ed.Poore10-Jun-06 20:59
Ed.Poore10-Jun-06 20:59 
QuestionSwitch algorithm Pin
S.M.9-Jun-06 14:15
S.M.9-Jun-06 14:15 
QuestionDatabase without Server with C# Pin
error14089-Jun-06 12:03
error14089-Jun-06 12:03 
AnswerRe: Database without Server with C# Pin
Ravi Bhavnani9-Jun-06 12:12
professionalRavi Bhavnani9-Jun-06 12:12 
GeneralRe: Database without Server with C# Pin
error14089-Jun-06 12:17
error14089-Jun-06 12:17 
GeneralRe: Database without Server with C# Pin
Luis Alonso Ramos9-Jun-06 12:39
Luis Alonso Ramos9-Jun-06 12:39 
AnswerRe: Database without Server with C# Pin
Joshua Quick9-Jun-06 12:43
Joshua Quick9-Jun-06 12:43 
AnswerRe: Database without Server with C# Pin
Jun Du9-Jun-06 16:22
Jun Du9-Jun-06 16:22 

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.