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

Ask for username/password without WebForm

P: n/a
mg
How can I download a little grey [header?] box - not a WebForm - that asks for username/ password? I've got a C# - based WebForm app.
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Can you be a bit more specific? Do you want to make an HTML page for user
name and password? Why don't you want a web form?

Eliyahu

"mg" <mg@theworld.com> wrote in message
news:1F**********************************@microsof t.com...
How can I download a little grey [header?] box - not a WebForm - that asks

for username/ password? I've got a C# - based WebForm app.
Nov 18 '05 #2

P: n/a
mg
BASIC authentication is built into common Web Browsers. It is the mecanism used whenever you go to a Web site and a little gray box pops up asking for your ID and password.
Nov 18 '05 #3

P: n/a
Ben
You have to enable Basic Auth in IIS then, if that is what you are looking for.
Nov 18 '05 #4

P: n/a
Once you get a user authenticated using Basic Authentication you can check
their username and whether they have been authenticated or not using

HttpContext.Current.User.Identity.Name
and
HttpContext.Current.User.Identity.IsAuthenticated

Questions? see:
http://msdn.microsoft.com/library/de...SecNetAP05.asp

"mg" <mg@theworld.com> wrote in message
news:80**********************************@microsof t.com...
Ah ... I wasn't specific enough!

I'd like to be able to grab the username & password from the little 'grey'

box and use them for application-specific authentication. That is, look up
the username & password in a database table.
Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.