Click here to Skip to main content
15,917,709 members
Home / Discussions / C#
   

C#

 
GeneralRe: show/hide detection Pin
Pete O'Hanlon8-Nov-07 4:42
mvePete O'Hanlon8-Nov-07 4:42 
GeneralRe: show/hide detection Pin
Morad SAJID8-Nov-07 4:48
Morad SAJID8-Nov-07 4:48 
GeneralRe: show/hide detection Pin
Pete O'Hanlon8-Nov-07 5:16
mvePete O'Hanlon8-Nov-07 5:16 
GeneralRe: show/hide detection Pin
Morad SAJID8-Nov-07 5:21
Morad SAJID8-Nov-07 5:21 
AnswerRe: show/hide detection Pin
Michael Potter8-Nov-07 5:18
Michael Potter8-Nov-07 5:18 
QuestionHelp with SQL Server Connection Pin
MumbleB8-Nov-07 3:22
MumbleB8-Nov-07 3:22 
AnswerRe: Help with SQL Server Connection Pin
Pete O'Hanlon8-Nov-07 3:27
mvePete O'Hanlon8-Nov-07 3:27 
QuestionUrjent Pin
imatetvm8-Nov-07 3:14
imatetvm8-Nov-07 3:14 
i got some error while connecting the server database(sqlserver in DATABASE sever) ....System.Data.SqlClient.SqlException: 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)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
when i put the code in server
but i can connect it in client side(using .net 2005 development platform)

i just use the code
SqlConnection con = new SqlConnection("Data Source=server ip;initial catalog=database name;uid=userid;pwd=password");
sqlCommand cmd = new SqlCommand();
cmd.CommandText = "select * from StLogin";
cmd.Connection = con;
SqlDataReader dr;
con.Open();
dr = cmd.ExecuteReader();
while (dr.Read() != false)
{
DropDownList1.Items.Add(dr[1].ToString());
}
AnswerRe: Urjent Pin
Pete O'Hanlon8-Nov-07 3:24
mvePete O'Hanlon8-Nov-07 3:24 
AnswerRe: Urjent Pin
Guffa8-Nov-07 3:24
Guffa8-Nov-07 3:24 
QuestionPrint problem [modified] Pin
rvds638-Nov-07 2:11
rvds638-Nov-07 2:11 
AnswerRe: Print problem Pin
Luc Pattyn8-Nov-07 2:54
sitebuilderLuc Pattyn8-Nov-07 2:54 
GeneralRe: Print problem Pin
rvds639-Nov-07 2:24
rvds639-Nov-07 2:24 
GeneralRe: Print problem Pin
Luc Pattyn9-Nov-07 3:12
sitebuilderLuc Pattyn9-Nov-07 3:12 
GeneralRe: Print problem Pin
rvds6313-Nov-07 1:48
rvds6313-Nov-07 1:48 
Questionget SqlServer resultset in dataset Pin
G.K.M.8-Nov-07 0:46
G.K.M.8-Nov-07 0:46 
AnswerRe: get SqlServer resultset in dataset Pin
Giorgi Dalakishvili8-Nov-07 1:16
mentorGiorgi Dalakishvili8-Nov-07 1:16 
AnswerRe: get SqlServer resultset in dataset Pin
N a v a n e e t h8-Nov-07 1:17
N a v a n e e t h8-Nov-07 1:17 
QuestionHow to display an array as Image Pin
assizas8-Nov-07 0:25
assizas8-Nov-07 0:25 
AnswerRe: How to display an array as Image Pin
Guffa8-Nov-07 2:07
Guffa8-Nov-07 2:07 
AnswerRe: How to display an array as Image Pin
Ennis Ray Lynch, Jr.8-Nov-07 6:37
Ennis Ray Lynch, Jr.8-Nov-07 6:37 
QuestionHTTPWebRequest class Pin
AssemblySoft8-Nov-07 0:02
AssemblySoft8-Nov-07 0:02 
AnswerRe: HTTPWebRequest class Pin
ChrisKo8-Nov-07 8:08
ChrisKo8-Nov-07 8:08 
GeneralRe: HTTPWebRequest class Pin
AssemblySoft8-Nov-07 11:17
AssemblySoft8-Nov-07 11:17 
QuestiondataGridView event handler Pin
merwa7-Nov-07 23:18
merwa7-Nov-07 23:18 

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.