Click here to Skip to main content
15,909,953 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: My Access database isn't being updated, but no errors occurred in my application Pin
SlickyMaster30-Oct-07 1:26
SlickyMaster30-Oct-07 1:26 
GeneralRe: My Access database isn't being updated, but no errors occurred in my application Pin
SlickyMaster30-Oct-07 8:19
SlickyMaster30-Oct-07 8:19 
QuestionUsing Multiple Sets of User Settings, How do I retrieve SettingsKey values? Pin
Umbelino26-Oct-07 6:18
Umbelino26-Oct-07 6:18 
AnswerRe: Using Multiple Sets of User Settings, How do I retrieve SettingsKey values? Pin
Dave Kreskowiak26-Oct-07 6:52
mveDave Kreskowiak26-Oct-07 6:52 
GeneralRe: Using Multiple Sets of User Settings, How do I retrieve SettingsKey values? Pin
Umbelino30-Oct-07 8:13
Umbelino30-Oct-07 8:13 
QuestionCan anyone translate this c# code to vb code for me please Pin
kc_renji26-Oct-07 6:01
kc_renji26-Oct-07 6:01 
AnswerRe: Can anyone translate this c# code to vb code for me please Pin
Kschuler26-Oct-07 6:37
Kschuler26-Oct-07 6:37 
AnswerRe: Can anyone translate this c# code to vb code for me please Pin
AliAmjad26-Oct-07 6:38
AliAmjad26-Oct-07 6:38 
Try it !

Dim ConVerify As OleDbConnection
Dim CmdVerify As OleDbCommand
Dim DtrVerify As OleDbDataReader
Dim StrVerify As String

ConVerify = New OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=Jigsaw.mdb")
ConVerify.Open()

StrVerify = "Select * From staff"
CmdVerify = New OleDbCommand(StrVerify, ConVerify)


DtrVerify = CmdVerify.ExecuteReader()
Dim checkuser As String = ""
While DtrVerify.Read()
    If txtusername.Text = Convert.ToString(DtrVerify("staff_username")) Then

        If txtpassword.Text = Convert.ToString(DtrVerify("staff_password")) Then
            Session("username") = DtrVerify("staff_username")
            Session("password") = DtrVerify("staff_password")

            Server.Transfer("mainStaff.aspx")
        Else
            Response.Write("<SCRIPT lanquage='JScript'>window.alert('Invalid Password! Please Try Again.');<" + "/SCRIPT>")
            Server.Transfer("staffLogin.aspx")
        End If
    End If
    checkuser = "Failed"
End While
If checkuser = "Failed" Then
    Response.Write("<SCRIPT lanquage='JScript'>window.alert('Invalid Username! Please Try Again.');<" + "/SCRIPT>")
    Server.Transfer("staffLogin.aspx")
End If

ConVerify.Close()


AliAmjad(MCP)

GeneralRe: Can anyone translate this c# code to vb code for me please Pin
kc_renji26-Oct-07 6:54
kc_renji26-Oct-07 6:54 
QuestionRe: Can anyone translate this c# code to vb code for me please Pin
kc_renji26-Oct-07 7:53
kc_renji26-Oct-07 7:53 
AnswerRe: Can anyone translate this c# code to vb code for me please Pin
Guffa26-Oct-07 8:18
Guffa26-Oct-07 8:18 
GeneralRe: Can anyone translate this c# code to vb code for me please Pin
kc_renji26-Oct-07 8:59
kc_renji26-Oct-07 8:59 
AnswerRe: Can anyone translate this c# code to vb code for me please Pin
Dave Kreskowiak26-Oct-07 6:46
mveDave Kreskowiak26-Oct-07 6:46 
GeneralRe: Can anyone translate this c# code to vb code for me please Pin
Paul Conrad26-Oct-07 6:57
professionalPaul Conrad26-Oct-07 6:57 
Questionhow do i check if exactly the same record is being entered twice? [modified] Pin
anniie26-Oct-07 5:19
anniie26-Oct-07 5:19 
AnswerRe: how do i check if exactly the same record is being entered twice? Pin
AliAmjad26-Oct-07 5:38
AliAmjad26-Oct-07 5:38 
AnswerRe: how do i check if exactly the same record is being entered twice? Pin
Dave Kreskowiak26-Oct-07 6:54
mveDave Kreskowiak26-Oct-07 6:54 
GeneralRe: how do i check if exactly the same record is being entered twice? [modified] Pin
anniie27-Oct-07 2:38
anniie27-Oct-07 2:38 
GeneralRe: how do i check if exactly the same record is being entered twice? Pin
Dave Kreskowiak27-Oct-07 3:34
mveDave Kreskowiak27-Oct-07 3:34 
GeneralRe: how do i check if exactly the same record is being entered twice? Pin
Jason Lepack (LeppyR64)29-Oct-07 7:33
Jason Lepack (LeppyR64)29-Oct-07 7:33 
Questionhow can I read 4 hex characters from a textbox and put them in a uint? Pin
Big Ralph26-Oct-07 4:24
Big Ralph26-Oct-07 4:24 
AnswerRe: how can I read 4 hex characters from a textbox and put them in a uint? Pin
Dave Kreskowiak26-Oct-07 6:44
mveDave Kreskowiak26-Oct-07 6:44 
QuestionNew To VB Pin
FreakNikon26-Oct-07 4:20
FreakNikon26-Oct-07 4:20 
AnswerRe: New To VB Pin
AliAmjad26-Oct-07 5:20
AliAmjad26-Oct-07 5:20 
GeneralRe: New To VB Pin
FreakNikon29-Oct-07 12:42
FreakNikon29-Oct-07 12:42 

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.