By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,693 Members | 1,252 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,693 IT Pros & Developers. It's quick & easy.

Login page help

P: n/a
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!
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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 Lux" <pe******@theheritagegrp.com> wrote in message
news:en*************@TK2MSFTNGP12.phx.gbl...
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!

Nov 20 '05 #2

P: n/a
Cor
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


Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.