VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. I need some help with a project I have to complete for university.

    Part of the project is having a login screen (web interface) that checks an XML file that contains the usernames and passwords and then if it finds a match directs the user through to a second page otherwise bounces them back to the login screen.

    It doesn't need encryption or anything however it does need to be programmed in Visual Studio .NET so basically VB code.

    Anyone know how to do this or have a resource on how it would be done. I am thinking it would just be a series of IF statements but my knowledge of stuff like this ain't so great.

    Cheers.
    Quote Quote  
  2. Member tekkieman's Avatar
    Join Date
    Mar 2004
    Location
    Over the hill
    Search Comp PM
    When do you need it by? I have some stuff that should help you, but I need to wait until I get home. Hopefully, they've repaired my DSL by then.

    For starters, if you are using Dev Studio .NET, create a new Web project. Add your textboxes for username and password. I personally would "cheat" a little, and add validation controls. They basically highlight required fields, and won't allow a submit until they've been entered.

    From there, you just add the code to parse the XML file (essentially a stream reader)...and do a string compare. If they don't match, postback otherwise redirect. You could do postback either way, but you mentioned going to a different page, so that's a redirect.

    I'll PM you some info, and get some VB.NET code samples for you after I get home, if you have that much time.
    Quote Quote  
  3. Member tekkieman's Avatar
    Join Date
    Mar 2004
    Location
    Over the hill
    Search Comp PM
    Just occured to me....should I report this post for being in the wrong section. Kinda belongs in programming, doesn't it.

    Also, I think this should get me a seat in indo's "Socializing with Mods" class, with extra credit for butt-kissing a mod!
    Quote Quote  
  4. I was thinking of putting it in the programming section but then I thought that was more for programming in relation to video such as video programs and codecs.

    Once again, thanks a million for your help and I'll get back to you through PM's.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!