Click here to Skip to main content
16,008,469 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: vb.net versus c# problem Pin
cstrader23227-Nov-07 15:01
cstrader23227-Nov-07 15:01 
GeneralRe: vb.net versus c# problem Pin
Dave Kreskowiak27-Nov-07 15:29
mveDave Kreskowiak27-Nov-07 15:29 
GeneralRe: vb.net versus c# problem Pin
cstrader23227-Nov-07 16:58
cstrader23227-Nov-07 16:58 
GeneralRe: vb.net versus c# problem Pin
cstrader23227-Nov-07 17:22
cstrader23227-Nov-07 17:22 
GeneralRe: vb.net versus c# problem Pin
Dave Kreskowiak28-Nov-07 3:29
mveDave Kreskowiak28-Nov-07 3:29 
GeneralRe: vb.net versus c# problem Pin
Luc Pattyn27-Nov-07 15:35
sitebuilderLuc Pattyn27-Nov-07 15:35 
GeneralRe: vb.net versus c# problem Pin
cstrader23227-Nov-07 17:04
cstrader23227-Nov-07 17:04 
QuestionCode error.Please help..What error is this? Pin
kc_renji27-Nov-07 2:27
kc_renji27-Nov-07 2:27 
Im developing a system using web developer 2005 express and sql server 2005 express
while i connecting to the database to login to the system i get this error "A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)"

This line is highlighted -> conMbr.Open()
Would anyone here explain to me please.Im just a beginner.
Help is very much appreciated.Thanks a lot in advance

My code would as:


Protected Sub btnLogin_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLogin.Click

Dim conMbr As New SqlConnection
Dim cmdMbr As New SqlCommand
Dim sqlReader As SqlDataReader

Dim strVerifyMbr As String

conMbr = New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename='C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\GpsCinema.mdf';Initial Catalog=GpsCinema;Persist Security Info=True;User ID=sa;Password=password;MultipleActiveResultSets=True;Connect Timeout=30;User Instance=False;Context Connection=False")
conMbr.Open()

strVerifyMbr = "SELECT MemberId FROM datMember WHERE MemberUsername=@txtUsername.text AND MemberPassword=@txtPwd.Text"
cmdMbr = New SqlCommand(strVerifyMbr, conMbr)

Dim checkUsr As String = ""

sqlReader = cmdMbr.ExecuteReader

While sqlReader.Read

If txtUsername.Text = Convert.ToString(sqlReader("MemberUsername")) And txtPwd.Text = Convert.ToString(sqlReader("MemberPassword")) Then

Response.Write("Login success")
Response.Redirect("Default.aspx")
End If

End While
End Sub


Life is up and down
Nevertheless,never give up hope and be confident to yourself

AnswerRe: Code error.Please help..What error is this? Pin
pmarfleet27-Nov-07 2:31
pmarfleet27-Nov-07 2:31 
Questionwant to read a field line by line. Pin
kokilaB26-Nov-07 23:59
kokilaB26-Nov-07 23:59 
AnswerRe: want to read a field line by line. Pin
Colin Angus Mackay27-Nov-07 0:09
Colin Angus Mackay27-Nov-07 0:09 
GeneralRe: want to read a field line by line. Pin
kokilaB27-Nov-07 0:21
kokilaB27-Nov-07 0:21 
GeneralRe: want to read a field line by line. Pin
kokilaB27-Nov-07 1:15
kokilaB27-Nov-07 1:15 
Questionlistbox code problem Pin
soniasan26-Nov-07 23:54
soniasan26-Nov-07 23:54 
AnswerRe: listbox code problem Pin
Colin Angus Mackay27-Nov-07 0:13
Colin Angus Mackay27-Nov-07 0:13 
Questionhi all Pin
poonams26-Nov-07 23:43
poonams26-Nov-07 23:43 
AnswerRe: hi all Pin
Colin Angus Mackay27-Nov-07 0:14
Colin Angus Mackay27-Nov-07 0:14 
QuestionMicrosoft Visual SourceSafe related issue. Pin
KETAN K.26-Nov-07 22:46
KETAN K.26-Nov-07 22:46 
AnswerRe: Microsoft Visual SourceSafe related issue. Pin
Dave Kreskowiak27-Nov-07 4:57
mveDave Kreskowiak27-Nov-07 4:57 
GeneralRe: Microsoft Visual SourceSafe related issue. Pin
KETAN K.28-Nov-07 1:28
KETAN K.28-Nov-07 1:28 
QuestionConfusion about the form_activate event Pin
nishkarsh_k26-Nov-07 22:12
nishkarsh_k26-Nov-07 22:12 
AnswerRe: Confusion about the form_activate event Pin
John_Adams27-Nov-07 0:01
John_Adams27-Nov-07 0:01 
GeneralRe: Confusion about the form_activate event Pin
nishkarsh_k27-Nov-07 20:42
nishkarsh_k27-Nov-07 20:42 
GeneralRe: Confusion about the form_activate event Pin
Dave Kreskowiak28-Nov-07 3:36
mveDave Kreskowiak28-Nov-07 3:36 
QuestionXML Encoding problem Pin
Benny_Lava26-Nov-07 21:05
Benny_Lava26-Nov-07 21:05 

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.