I am hitting a url using http post with certain parameters and upon hitting url a box appears which asks for username and password . For now i am pasting the url in browser and on entering it asks for username and password.
I want to do this using asp.net when i know how to send request to url but i want to know how can i automatically enter username and password using code . Thank You
What you are looking to do is send a POST request to the server with the username and password. Most servers will not accept a direct authentication request and will require to have a few Http headers like cookies, referer to be set before it.
You can use a tool like fiddler to see what your browser is actually sending to the server.
Here is a small sample to send post data to the server.
EDIT: This is this simplest method to set the basic authorization header
The link you provide says that they use basic HTTP authentication.