Click here to Skip to main content
15,894,740 members
Home / Discussions / C#
   

C#

 
Questionscoket communication through internet IP between two machine? Pin
Tridip Bhattacharjee7-Oct-09 4:20
professionalTridip Bhattacharjee7-Oct-09 4:20 
AnswerRe: scoket communication through internet IP between two machine? Pin
stancrm7-Oct-09 5:43
stancrm7-Oct-09 5:43 
Questioni need help Pin
Mohamed El-Wehishy7-Oct-09 4:17
Mohamed El-Wehishy7-Oct-09 4:17 
AnswerRe: i need help Pin
Blikkies7-Oct-09 4:28
professionalBlikkies7-Oct-09 4:28 
RantRe: i need help Pin
Greg Chelstowski7-Oct-09 4:41
Greg Chelstowski7-Oct-09 4:41 
GeneralRe: i need help Pin
Blikkies7-Oct-09 4:44
professionalBlikkies7-Oct-09 4:44 
GeneralRe: i need help Pin
Mohamed El-Wehishy7-Oct-09 4:53
Mohamed El-Wehishy7-Oct-09 4:53 
AnswerRe: i need help Pin
Blikkies7-Oct-09 4:52
professionalBlikkies7-Oct-09 4:52 
SqlConnection conn = new SqlConnection(@"user id=sa; Password=pass; initial catalog=databaseName; Data source=localhost");
			conn.Open();
			SqlCommand cmd = conn.CreateCommand();
			cmd.CommandText = "SELECT * FROM Tabel WHERE tels_no = '"+textbox1.Text.Replace("'","")+"'";
			SqlDataReader reader = cmd.ExecuteReader();
			while(reader.Read())
			{
				TextBox2.Text = reader["tels_name"].ToString();
			}


Use following namespaces:
using System.Data;
using System.Data.SqlClient;
GeneralRe: i need help Pin
Mirko19807-Oct-09 5:46
Mirko19807-Oct-09 5:46 
GeneralRe: i need help Pin
Blikkies7-Oct-09 7:11
professionalBlikkies7-Oct-09 7:11 
GeneralRe: i need help Pin
Blikkies7-Oct-09 7:14
professionalBlikkies7-Oct-09 7:14 
GeneralRe: i need help Pin
Christian Graus7-Oct-09 10:03
protectorChristian Graus7-Oct-09 10:03 
AnswerRe: i need help Pin
Henry Minute7-Oct-09 6:01
Henry Minute7-Oct-09 6:01 
QuestionTFS and WPF issue Pin
JMichael24687-Oct-09 4:08
JMichael24687-Oct-09 4:08 
AnswerRe: TFS and WPF issue Pin
Mirko19807-Oct-09 6:09
Mirko19807-Oct-09 6:09 
GeneralRe: TFS and WPF issue Pin
JMichael24687-Oct-09 9:42
JMichael24687-Oct-09 9:42 
QuestionSyntax Pin
Md. Marufuzzaman7-Oct-09 3:53
professionalMd. Marufuzzaman7-Oct-09 3:53 
AnswerRe: Syntax [modified] Pin
EliottA7-Oct-09 3:58
EliottA7-Oct-09 3:58 
GeneralRe: Syntax Pin
Md. Marufuzzaman7-Oct-09 4:51
professionalMd. Marufuzzaman7-Oct-09 4:51 
AnswerRe: Syntax Pin
Henry Minute7-Oct-09 4:04
Henry Minute7-Oct-09 4:04 
GeneralRe: Syntax Pin
Md. Marufuzzaman7-Oct-09 8:11
professionalMd. Marufuzzaman7-Oct-09 8:11 
Question[Message Deleted] Pin
arkiboys7-Oct-09 3:42
arkiboys7-Oct-09 3:42 
AnswerRe: execute ssis from asp.net Pin
EliottA7-Oct-09 3:43
EliottA7-Oct-09 3:43 
QuestionIs it safe to use Process.GetCurrentProcess().Kill() ? Pin
ramz_g7-Oct-09 3:33
ramz_g7-Oct-09 3:33 
AnswerRe: Is it safe to use Process.GetCurrentProcess().Kill() ? [modified] Pin
Nagy Vilmos7-Oct-09 3:48
professionalNagy Vilmos7-Oct-09 3:48 

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.