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.
+ Reply to Thread
Results 1 to 4 of 4
-
-
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. -
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! -
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.
Similar Threads
-
CLI to XML
By eon_designs in forum Video ConversionReplies: 1Last Post: 29th Apr 2010, 10:50 -
Megui xml error
By headhunter03 in forum Off topicReplies: 0Last Post: 4th Apr 2009, 09:19 -
srt to xml ? any tools ?
By sat-jokar in forum SubtitleReplies: 3Last Post: 10th Mar 2009, 08:12 -
Transport stream for XML?
By TrupsT in forum Video Streaming DownloadingReplies: 1Last Post: 30th Jan 2009, 11:25 -
DriveImage XML
By blockie@sbcglobal.ne in forum ComputerReplies: 2Last Post: 25th Jul 2008, 16:25