Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
Questionhow to validate a wmf image? Pin
deostroll3-May-10 19:16
deostroll3-May-10 19:16 
QuestionGetting Error in : datatable visualizer C# Pin
jojoba20113-May-10 18:01
jojoba20113-May-10 18:01 
AnswerRe: Getting Error in : datatable visualizer C# Pin
ronaldrahme14-Jul-10 2:59
ronaldrahme14-Jul-10 2:59 
QuestionAdding to project Pin
Gene_Sheppard3-May-10 15:00
Gene_Sheppard3-May-10 15:00 
AnswerRe: Adding to project Pin
PIEBALDconsult3-May-10 15:27
mvePIEBALDconsult3-May-10 15:27 
AnswerRe: Adding to project Pin
AspDotNetDev3-May-10 16:01
protectorAspDotNetDev3-May-10 16:01 
GeneralRe: Adding to project Pin
Gene_Sheppard3-May-10 16:14
Gene_Sheppard3-May-10 16:14 
QuestionPlaceholders with SQL statement Pin
Terence van Schalkwyk3-May-10 9:49
Terence van Schalkwyk3-May-10 9:49 
If I have the following strings etc setup would I be able to use a placeholder?

I hope below makes sense, how would I let the placeholsers know what to reference?
string FirstName = txtFirstName.Text;
     string MiddleName = txtMiddleName.Text;
     string LastName = txtLastName.Text;
     string idNumber = txtIdNumber.Text;
     string eMailAddress = txtEmailAddress.Text;
     string WebSite = txtWebsiteAddress.Text;
     string HomePhone = txtHomePhone.Text;
     string WorkPhone = txtWorkPhone.Text;
     string FaxPhone = txtFaxPhone.Text;
     string MobilePhone = txtMobilePhone.Text;
     bool ContactVerified = chkVerified.Checked;
     bool Tenant = chkTenant.Checked;
     bool Owner = chkOwner.Checked;

     SqlCommand myCommand = new SqlCommand("INSERT INTO contacts (first_name,middle_name,last_name,id_number,home_phone,work_phone,fax_phone,mobile_number,email_address,website_address,contact_verified,tenant,owner)" +
                              "Values ('{0}', '{1}', '{2}', '{3}', '{4}', '{5}', '{6}', '{7}', '{8}', '{9}', '{10}', '{11}', '{12}')", myconnection);

AnswerRe: Placeholders with SQL statement Pin
SomeGuyThatIsMe3-May-10 9:55
SomeGuyThatIsMe3-May-10 9:55 
AnswerRe: Placeholders with SQL statement Pin
Luc Pattyn3-May-10 10:03
sitebuilderLuc Pattyn3-May-10 10:03 
GeneralRe: Placeholders with SQL statement Pin
Terence van Schalkwyk3-May-10 10:09
Terence van Schalkwyk3-May-10 10:09 
GeneralRe: Placeholders with SQL statement Pin
Pete O'Hanlon3-May-10 11:21
mvePete O'Hanlon3-May-10 11:21 
QuestionClass Instantiation when to use/or not Pin
mprice2143-May-10 9:00
mprice2143-May-10 9:00 
AnswerRe: Class Instantiation when to use/or not Pin
Richard MacCutchan3-May-10 9:45
mveRichard MacCutchan3-May-10 9:45 
GeneralRe: Class Instantiation when to use/or not Pin
mprice2143-May-10 10:41
mprice2143-May-10 10:41 
GeneralRe: Class Instantiation when to use/or not PinPopular
Luc Pattyn3-May-10 12:44
sitebuilderLuc Pattyn3-May-10 12:44 
GeneralRe: Class Instantiation when to use/or not Pin
mprice2144-May-10 3:19
mprice2144-May-10 3:19 
GeneralRe: Class Instantiation when to use/or not Pin
Luc Pattyn4-May-10 3:29
sitebuilderLuc Pattyn4-May-10 3:29 
GeneralRe: Class Instantiation when to use/or not Pin
Richard MacCutchan3-May-10 22:29
mveRichard MacCutchan3-May-10 22:29 
Questiongraphic examples in C # Pin
jack_cia3-May-10 7:43
jack_cia3-May-10 7:43 
AnswerRe: graphic examples in C # Pin
#realJSOP3-May-10 7:54
mve#realJSOP3-May-10 7:54 
AnswerRe: graphic examples in C # Pin
Luc Pattyn3-May-10 8:42
sitebuilderLuc Pattyn3-May-10 8:42 
GeneralRe: graphic examples in C # Pin
dj20783-May-10 17:22
dj20783-May-10 17:22 
GeneralRe: graphic examples in C # Pin
Luc Pattyn3-May-10 17:33
sitebuilderLuc Pattyn3-May-10 17:33 
AnswerRe: graphic examples in C # Pin
yu-jian4-May-10 3:37
yu-jian4-May-10 3: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.