Hello, I have an application that uses httpWebRequest and httpWebResponse to first login to a web site using a POST and then I retain the CookieContainer from the request. I then use the CookieContainer in subsequent requests so that I remain authenticated. This process works great.
What I would like to do now is is use the same login process from within ASP.Net. I Have a LinkButton on a page that when clicked fires off the code. The login portion works fine and returns the CookieContainer but I am not quite sure where to go from there. If I extract just the cookie it is not compatible with ASP.Net Response object since the cookie I have is System.Net.Cookie and the Response object expects a System.Web.httpCookie. ideally, this is what I would lvoe to happen. - User clicks link button. - In RowCommand event I fire off code that logs into website. - Open new browser window using cookie from previous step and open desired page. Any help? Thanks Karl
