when user hit the application URL the user should login automatically with out prompting any user name and password(BCZ he is already a windows authenticated user)
then why the hell would you put a login and password in your program?? the fact that your pc is running doesn't necessarily means you are working on it. if it is an application that deals with sensitive data, you might want to reconsider a bit. I can understand the part where you want the user-name to be automatically set to the login in Windows, but dropping the prompt for a password, would be the same as: not giving the application to those who don't need it.
now, concerning your question, a couple of days ago, someone asked a similar question. you might get some help out of the response he got. it shows how you let your app automatically find the user that is logged in on Windows.
Read me
Reputation Points: 935
Solved Threads: 356
Nearly a Posting Maven
Offline 2,497 posts
since Jan 2007