Login page help

  • Thread starter Thread starter Pete Lux
  • Start date Start date
P

Pete Lux

I have built a web form that displays data, but I've hard coded the
username/password/database. I can create a separate .aspx for that info, but
I'd like to find out how to navigate back and forth.

I would like the login.aspx to come up first, connect to the db, then call
up my quote form. Do I do this with a 'Show'/'Hide'?
Thanks!
 
Look into using Forms Authentication.. Also, the ASP.NET user group will be
much more helpful too...

If you want to get a good example of it in use, check out IBS at www.asp.net

-CJ
 
Pete,
It seems to me, if you are using aspx with a modern kind of vb.scripting.

If you are using VB.studio net or Visual.studio net this is the right
newsgroup for you and we can help you to make life easier. Otherwise you get
probably better answers in the newsgroup special for asp.net where
VB.scripting is used.

So if you are using VB.studio.net, please tell us. To do that what you ask
with the VB.studio.net tool is in the simplest way I think not more than 7
lines of code from which 2 automatic (not included your access to the
database).

(If your webform has 2 textboxes and 1 button and a label it can be
something as, writing in a kind of pseudo code)

\\\
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
---- find name in authentication system
if found then
if textbox1.text = password in authentication system then
redirect to next page
else
label1.text = "User and/or password is incorrect"
end if

End Sub
////
After this the user get or a new page or the page back with the message on
the label.

This is just an example.

I hope this make sence
Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top