Hello Jerry,
I found this issue is related to another thread from you, so I replied same
in the two threads:
The login popup dialog is generated by IE and IIS. When we see the dialog,
the web application is not really "touched": when we enable the windows
authentication, IIS will require IE send windows authentication token, if
IIS didn't find one (for example, a user from unknown AD), it will return
IE an error message, and the login popup dialog will be displayed in IE.
So, what we can do in the ASP.NET application, wouldn't change this
behavior.
How about this: you may have a main "entry" form, user can select his
source by himself, for example, he can select if he is a user with
companion account, or a AD user which need to be authenticated with form.
If user select "companion account", you may redirect him to a windows
authentication webform. For others, redirect him to a login form.
Regards,
Luke Zhang
Microsoft Online Community Lead
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
|