Click here to Skip to main content
15,909,193 members
Home / Discussions / C#
   

C#

 
GeneralRe: Remoting Channel problem with .NET 2.0 Pin
Bob Stanneveld16-Nov-05 5:43
Bob Stanneveld16-Nov-05 5:43 
QuestionEventLog TimeGenerated problem Pin
Michael van Rooijen15-Nov-05 23:20
Michael van Rooijen15-Nov-05 23:20 
QuestionSystem.Data.SqlClient.SqlException Pin
Lebanese15-Nov-05 23:00
Lebanese15-Nov-05 23:00 
AnswerRe: System.Data.SqlClient.SqlException Pin
Igor Sukhov16-Nov-05 0:20
Igor Sukhov16-Nov-05 0:20 
GeneralRe: System.Data.SqlClient.SqlException Pin
Lebanese16-Nov-05 1:30
Lebanese16-Nov-05 1:30 
GeneralRe: System.Data.SqlClient.SqlException Pin
Lebanese16-Nov-05 1:31
Lebanese16-Nov-05 1:31 
GeneralRe: System.Data.SqlClient.SqlException Pin
Igor Sukhov16-Nov-05 3:10
Igor Sukhov16-Nov-05 3:10 
GeneralRe: System.Data.SqlClient.SqlException Pin
Lebanese16-Nov-05 20:24
Lebanese16-Nov-05 20:24 
Igor,

This is the function i made to select the data i want,
and the debugger stop at "Conn.Open()"
note: i don't have this problem in vs.net 1.x

Public Function CheckCompanyByCompanyName(ByVal CompanyName As String) As Integer
Dim SelectCommand As SqlCommand = New SqlCommand
Dim Conn As SqlConnection = New SqlConnection
Conn.ConnectionString = ConfigurationManager.ConnectionStrings(0).ConnectionString
SelectCommand.CommandType = Data.CommandType.StoredProcedure
SelectCommand.CommandText = "CheckCompanyByCompanyName"
SelectCommand.Connection = Conn
SelectCommand.Parameters.AddWithValue("@CompanyName", CompanyName)
Dim ID As Integer
--> Conn.Open()
ID = CType(SelectCommand.ExecuteScalar, Integer)
Conn.Close()
Return ID
End Function

<connectionstrings>
<add name="CasterConnectionString" connectionstring="Data Source=localhost;Initial Catalog=dbname;User ID=sa" providername="System.Data.SqlClient">

thanks in advance


Lebanon is a very nice country
QuestionCrystal Report deployment problem Pin
memoboy15-Nov-05 22:05
memoboy15-Nov-05 22:05 
QuestionRe: i traid to merg Pin
memoboy16-Nov-05 1:15
memoboy16-Nov-05 1:15 
QuestionAbout Progressbar Pin
Sina_Ad15-Nov-05 21:37
Sina_Ad15-Nov-05 21:37 
QuestionWhat does Accesible Role do? Pin
Sina_Ad15-Nov-05 21:29
Sina_Ad15-Nov-05 21:29 
Questionwindows service Pin
Ankit Aneja15-Nov-05 19:37
Ankit Aneja15-Nov-05 19:37 
AnswerRe: windows service Pin
Sean Michael Murphy16-Nov-05 4:57
Sean Michael Murphy16-Nov-05 4:57 
GeneralRe: windows service Pin
Ankit Aneja17-Nov-05 18:44
Ankit Aneja17-Nov-05 18:44 
QuestionFile wrapper Pin
picasso215-Nov-05 19:17
picasso215-Nov-05 19:17 
QuestionHow i get C# ASP.net Source code for Study Pin
Suryakant S. Bharne15-Nov-05 19:02
professionalSuryakant S. Bharne15-Nov-05 19:02 
AnswerRe: How i get C# ASP.net Source code for Study Pin
Michael P Butler15-Nov-05 21:10
Michael P Butler15-Nov-05 21:10 
QuestionFTP Download - please help Pin
SheenSylesh15-Nov-05 17:58
SheenSylesh15-Nov-05 17:58 
AnswerRe: FTP Download - please help Pin
mwallon15-Nov-05 23:00
mwallon15-Nov-05 23:00 
Questioncalendar help~~ Pin
momoo15-Nov-05 13:43
momoo15-Nov-05 13:43 
AnswerRe: calendar help~~ Pin
Christian Graus15-Nov-05 14:18
protectorChristian Graus15-Nov-05 14:18 
GeneralRe: calendar help~~ Pin
momoo17-Nov-05 16:04
momoo17-Nov-05 16:04 
QuestionFind button with DataView and wildcard support? Pin
mscis15-Nov-05 13:19
mscis15-Nov-05 13:19 
Questionflash in a pocket pc project Pin
mwallon15-Nov-05 13:02
mwallon15-Nov-05 13:02 

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.