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

C#

 
GeneralRe: Numeric Format problem Pin
ansriharsha9-Jul-09 2:40
ansriharsha9-Jul-09 2:40 
QuestionRe: Numeric Format problem Pin
Eddy Vluggen9-Jul-09 2:51
professionalEddy Vluggen9-Jul-09 2:51 
AnswerRe: Numeric Format problem Pin
ansriharsha9-Jul-09 3:47
ansriharsha9-Jul-09 3:47 
GeneralRe: Numeric Format problem Pin
Eddy Vluggen9-Jul-09 3:57
professionalEddy Vluggen9-Jul-09 3:57 
AnswerRe: Numeric Format problem Pin
ansriharsha9-Jul-09 4:33
ansriharsha9-Jul-09 4:33 
GeneralRe: Numeric Format problem Pin
Eddy Vluggen9-Jul-09 6:33
professionalEddy Vluggen9-Jul-09 6:33 
AnswerRe: Numeric Format problem Pin
ansriharsha17-Jul-09 0:50
ansriharsha17-Jul-09 0:50 
QuestionPlease Help... Pin
mjawadkhatri8-Jul-09 23:00
mjawadkhatri8-Jul-09 23:00 
Hi Please Help me i get this error when i connect to database

"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server"

i use this coding

" SqlConnection con;
SqlCommand cmd;
SqlDataReader dr;


private void login_Click(object sender, EventArgs e)
{
con = new SqlConnection("integrated security = true;Database=orcl8i;Password=creative;User ID=itehad");
cmd = new SqlCommand();
cmd.Connection = con;
cmd.Connection.Open();
cmd.CommandText = "Select * from users";
dr = cmd.ExecuteReader();
while (dr.Read())
{
if (usr.Text == dr["userid"].ToString()) && pass.Text == dr["password"].ToString)
{
MessageBox.Show("User Login", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
else

MessageBox.Show("Login Fail")
AnswerRe: Please Help... Pin
Pete O'Hanlon8-Jul-09 23:16
mvePete O'Hanlon8-Jul-09 23:16 
GeneralRe: Please Help... Pin
Luc Pattyn9-Jul-09 9:42
sitebuilderLuc Pattyn9-Jul-09 9:42 
AnswerRe: Please Help... Pin
Blue_Boy8-Jul-09 23:26
Blue_Boy8-Jul-09 23:26 
GeneralRe: Please Help... Pin
mjawadkhatri9-Jul-09 0:00
mjawadkhatri9-Jul-09 0:00 
AnswerRe: Please Help... Pin
J4amieC9-Jul-09 0:47
J4amieC9-Jul-09 0:47 
GeneralRe: Please Help... Pin
mjawadkhatri9-Jul-09 0:54
mjawadkhatri9-Jul-09 0:54 
GeneralRe: Please Help... Pin
Pete O'Hanlon9-Jul-09 1:01
mvePete O'Hanlon9-Jul-09 1:01 
GeneralRe: Please Help... Pin
mjawadkhatri9-Jul-09 1:21
mjawadkhatri9-Jul-09 1:21 
GeneralRe: Please Help... Pin
Pete O'Hanlon9-Jul-09 1:25
mvePete O'Hanlon9-Jul-09 1:25 
GeneralRe: Please Help... Pin
mjawadkhatri9-Jul-09 1:50
mjawadkhatri9-Jul-09 1:50 
QuestionHelp Please Email Text Box Pin
Danie de Kock8-Jul-09 22:21
Danie de Kock8-Jul-09 22:21 
AnswerRe: Help Please Email Text Box Pin
Danie de Kock9-Jul-09 0:18
Danie de Kock9-Jul-09 0:18 
GeneralRe: Help Please Email Text Box Pin
K03069-Jul-09 1:56
K03069-Jul-09 1:56 
Questionchanging brightness in video player? Pin
kukoc8-Jul-09 22:15
kukoc8-Jul-09 22:15 
AnswerRe: changing brightness in video player? Pin
kukoc9-Jul-09 22:27
kukoc9-Jul-09 22:27 
QuestionVC++ Pin
Satish Pai8-Jul-09 21:09
Satish Pai8-Jul-09 21:09 
AnswerRe: VC++ Pin
stancrm8-Jul-09 21:19
stancrm8-Jul-09 21:19 

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.