Author: asp2go | Posted on: 2/25/2009 5:32:06 PM | Views : 274

I need to gather data from a member site a client belongs to that requires forms authentication. Anyone have a complete example on doing so?


I found this code online but how do we use it ( in code behind? as a class? what parameter to pass to it? ). If we can get this working we're already parsing out details from non-authenticated sites - just need this to work.

 

using System;
using System.IO;
using System.Net;

namespace FormsAuthTest
{
    class Program
    {
        static void Main(string[] args)
        {
            HttpWebRequest request = null;
            Go to the complete details ...