Click here to Skip to main content
15,890,527 members
Home / Discussions / C#
   

C#

 
GeneralRe: Database connection pool thr application Pin
Pete O'Hanlon3-Apr-12 2:13
mvePete O'Hanlon3-Apr-12 2:13 
GeneralRe: Database connection pool thr application Pin
anishkannan3-Apr-12 2:30
anishkannan3-Apr-12 2:30 
AnswerRe: Database connection pool thr application Pin
Eddy Vluggen3-Apr-12 2:41
professionalEddy Vluggen3-Apr-12 2:41 
GeneralRe: Database connection pool thr application Pin
anishkannan3-Apr-12 2:45
anishkannan3-Apr-12 2:45 
GeneralRe: Database connection pool thr application Pin
Eddy Vluggen3-Apr-12 2:50
professionalEddy Vluggen3-Apr-12 2:50 
GeneralRe: Database connection pool thr application Pin
Pete O'Hanlon3-Apr-12 3:10
mvePete O'Hanlon3-Apr-12 3:10 
AnswerRe: Database connection pool thr application Pin
Eddy Vluggen3-Apr-12 2:39
professionalEddy Vluggen3-Apr-12 2:39 
QuestionRetrieve Value from scanner Pin
Reena Aleesya2-Apr-12 16:34
Reena Aleesya2-Apr-12 16:34 
Hi guys,
Currently, i've develop window based application using employee card to retrieve information and data once scan the card. The card id will merge with employee no and will display into page.
Below is my code:

VB
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
             If TextBox1.Text = True Then
           
           Dim CardID As String = TextBox1.Text
           Dim endID As String = CardID.Substring(5)
           con = New SqlConnection("Data Source=10.1.2.215;Initial Catalog=eExitPass;Persist Security Info=True;User ID=sa1;Password=sa1")
           con.Open()
           a = Val(TextBox1.Text)
           sql = "select D.CardID, A.EmpNo, convert(varchar,A.pplyDate,100) As ApplyDate, C.Status, " & _
                          "from " & _
                          "EmpDetails A left join Clock_Time D on A.EmpNo = D.EmpNo left join Status C on A. Status = C.StatusID where A.EmpNo='" & TextBox2.Text & "' "
          
           da.Fill(ds, "db1")
           MsgBox("Database is now open")

           con.Close()
           MsgBox("Database is now Closed")
       Else
           MsgBox("Incorrect Serial Number")
       End If
   End Sub



Thanks in advance
Ms Aleesya Shanngari
AnswerRe: Retrieve Value from scanner Pin
Abhinav S2-Apr-12 17:14
Abhinav S2-Apr-12 17:14 
AnswerRe: Retrieve Value from scanner Pin
Luc Pattyn2-Apr-12 17:34
sitebuilderLuc Pattyn2-Apr-12 17:34 
GeneralRe: Retrieve Value from scanner Pin
Abhinav S2-Apr-12 21:24
Abhinav S2-Apr-12 21:24 
AnswerRe: Retrieve Value from scanner Pin
Richard MacCutchan2-Apr-12 21:28
mveRichard MacCutchan2-Apr-12 21:28 
AnswerRe: Retrieve Value from scanner Pin
Richard Andrew x643-Apr-12 5:30
professionalRichard Andrew x643-Apr-12 5:30 
QuestionCrystal Report not displaying vertical line c# Pin
nhanlaptrinh2-Apr-12 15:59
nhanlaptrinh2-Apr-12 15:59 
AnswerRe: Crystal Report not displaying vertical line c# Pin
Vipin_Arora2-Apr-12 21:33
Vipin_Arora2-Apr-12 21:33 
GeneralRe: Crystal Report not displaying vertical line c# Pin
nhanlaptrinh3-Apr-12 4:08
nhanlaptrinh3-Apr-12 4:08 
Questionerp Pin
MemberDotNetting2-Apr-12 15:33
MemberDotNetting2-Apr-12 15:33 
AnswerRe: erp Pin
Not Active2-Apr-12 15:59
mentorNot Active2-Apr-12 15:59 
AnswerRe: erp Pin
Abhinav S2-Apr-12 17:17
Abhinav S2-Apr-12 17:17 
Questionsending SMS from c# Pin
TamilarasiTest2-Apr-12 3:56
TamilarasiTest2-Apr-12 3:56 
AnswerRe: sending SMS from c# Pin
Not Active2-Apr-12 4:10
mentorNot Active2-Apr-12 4:10 
AnswerRe: sending SMS from c# Pin
Abhinav S2-Apr-12 6:38
Abhinav S2-Apr-12 6:38 
AnswerRe: sending SMS from c# Pin
jschell2-Apr-12 8:30
jschell2-Apr-12 8:30 
AnswerRe: sending SMS from c# Pin
Hosam Ershedat2-Apr-12 10:08
Hosam Ershedat2-Apr-12 10:08 
QuestionWebAuthenticationBroker VKontakte Pin
tfile1012-Apr-12 2:47
tfile1012-Apr-12 2:47 

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.