WEBScraping in asp.net C#
<p>guys i have to take the lottery results from a website page ..... thru a webservice and display it on web client.</p>

<p>so far i got to extract z result usin the code :</p>

<pre><code>using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Text.RegularExpressions;
using System.Text;
using System.Net;
using System.Collections.Generic;
using System.Linq;

public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        HttpWebRequest webRequest = WebRequest.Create("http://www.loterienationale.mu/loto/tirages-et-archives") as HttpWebRequest;
        StreamReader responseReader = new StreamReader(webRequest.GetResponse().GetResponseStream());
        string responseData = responseReader.ReadToEnd();
        responseReader.Close();
        webRequest.GetResponse().Close();

        MatchCollection m1 = Regex.Matches(responseData, @"(?&lt;=&lt;span class=""text-resultat-num""[^&gt;]*&gt;).*?(?=&lt;/span&gt;)", RegexOptions.Singleline);

        foreach (Match m in m1)
        {
            Response.Write(m.ToString());
        }
    }
}
</code></pre>

<p>BUT i do not want it to WRITE. Instead i want it to return the value to the client.</p>

<p>HOW CAN I DO IT??? </p>

<p>help please.</p>
