How to get Netcredentials object from logged in user in asp.net?
<p>I want to hit a url which accepts username and password to authenticate. But this username and password should be currently logged in user credentials.</p>

<p>how can i acheive this? Here is my code.</p>

<pre><code>HttpWebRequest request = WebRequest.Create("http://xxx") as HttpWebRequest;

request.Credentials = This should be credentials of Windows Logged in user.

request.GetResponse();
</code></pre>
