Click here to Skip to main content
12,629,978 members (31,766 online)
   

ASP.NET

 
Questionasp.net vb Pin
Nada ALsalami5-Dec-12 4:09
memberNada ALsalami5-Dec-12 4:09 
AnswerRe: asp.net vb Pin
ryanb315-Dec-12 5:34
memberryanb315-Dec-12 5:34 
GeneralRe: asp.net vb Pin
Nada ALsalami5-Dec-12 6:05
memberNada ALsalami5-Dec-12 6:05 
GeneralRe: asp.net vb Pin
ryanb315-Dec-12 8:17
memberryanb315-Dec-12 8:17 
AnswerRe: asp.net vb Pin
jkirkerx5-Dec-12 18:22
memberjkirkerx5-Dec-12 18:22 
GeneralRe: asp.net vb Pin
Nada ALsalami6-Dec-12 2:56
memberNada ALsalami6-Dec-12 2:56 
AnswerRe: asp.net vb Pin
jkirkerx6-Dec-12 8:32
memberjkirkerx6-Dec-12 8:32 
GeneralRe: asp.net vb Pin
jkirkerx6-Dec-12 12:36
memberjkirkerx6-Dec-12 12:36 
Just off the top of my head, I write in vb, not that quick in c sharp. But I put about 10 minutes into it just to test 1 char. I would have to come back to convert the program to test char positions 2-4-6-7. I'm a little fuzzy on integer array, in which I can loop the Integer array of p1 to test 2-4-6-7 in the same loop, and produce a exit code such as 0 for success or 1 for failure.

[edit]
If I used the integer array of p1 for looping, I could just match the int value to the char position much faster. But that's my weakness.
Dim p1() as Integer = 2467
Anyways this is just a starter thought
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
 
        Dim uPassword() As Char = "fortune"
        Dim p1 As Integer = 2
        Dim p1c As Char = "r"
        Dim pMatch As Integer = 1
 
        Dim input(uPassword.Length - 1) As Char
        For i As Integer = 0 To uPassword.Length - 1
            'Just building the password char array to validate the thought
            input(i) = uPassword(i)
 
            If (p1 = i) Then
                If (uPassword(i) = p1c) Then
                    pMatch = 0
                End If
            End If
        Next
 
        Response.Write("<span style=""color: black;"">" & input & "</span>" & _
            "
<span style=""color: black;"">" & pMatch.ToString & "</span>")
 
    End Sub

GeneralRe: asp.net vb Pin
Nada ALsalami12-Dec-12 6:03
memberNada ALsalami12-Dec-12 6:03 
GeneralRe: asp.net vb Pin
jkirkerx12-Dec-12 6:55
memberjkirkerx12-Dec-12 6:55 
GeneralRe: asp.net vb Pin
Nada ALsalami12-Dec-12 22:14
memberNada ALsalami12-Dec-12 22:14 
Question70-513 Video Tutorial Please Pin
silentspeaker5-Dec-12 3:45
membersilentspeaker5-Dec-12 3:45 
AnswerRe: 70-513 Video Tutorial Please Pin
Richard MacCutchan5-Dec-12 3:55
mvpRichard MacCutchan5-Dec-12 3:55 
GeneralRe: 70-513 Video Tutorial Please Pin
silentspeaker5-Dec-12 8:05
membersilentspeaker5-Dec-12 8:05 
QuestionDataList with Product Heads. Pin
Asif Rehman4-Dec-12 8:17
memberAsif Rehman4-Dec-12 8:17 
AnswerRe: DataList with Product Heads. Pin
Himanshu Yadav4-Dec-12 19:53
memberHimanshu Yadav4-Dec-12 19:53 
QuestionHI,how to do access sqlserver use windows domain user? Pin
xut24473-Dec-12 20:20
memberxut24473-Dec-12 20:20 
AnswerRe: HI,how to do access sqlserver use windows domain user? Pin
J4amieC3-Dec-12 23:24
memberJ4amieC3-Dec-12 23:24 
GeneralRe: HI,how to do access sqlserver use windows domain user? Pin
Andrew Stoute4-Dec-12 5:25
memberAndrew Stoute4-Dec-12 5:25 
Questionaspnet_wp process crash Pin
Kishore Hyd3-Dec-12 13:11
memberKishore Hyd3-Dec-12 13:11 
QuestionRe: aspnet_wp process crash Pin
ryanb315-Dec-12 5:36
memberryanb315-Dec-12 5:36 
JokeRe: aspnet_wp process crash Pin
jkirkerx5-Dec-12 18:27
memberjkirkerx5-Dec-12 18:27 
Questionexit from a masterpage Pin
juan manuel rdz3-Dec-12 9:01
memberjuan manuel rdz3-Dec-12 9:01 
GeneralRe: exit from a masterpage Pin
@AmitGajjar3-Dec-12 19:09
member@AmitGajjar3-Dec-12 19:09 
AnswerRe: exit from a masterpage Pin
Himanshu Yadav4-Dec-12 19:47
memberHimanshu Yadav4-Dec-12 19: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.


Advertise | Privacy | Mobile
Web02 | 2.8.161205.3 | Last Updated 7 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid