Kerstin and I have just returned from the wedding of her best friend Julia to Marco in Italy. The wedding took place over the weekend in a unique and beautiful location, not far from Terni, a hour north of Rome in Umbria. We travelled over on the Thursday night, flying from Frankfurt Hann airport, which…
Well, in short we have been pretty busy over the last two weeks. After returning from our weekend in Bremen, we jumped in the car and drove to Den Haag (The Hague), in Holland to visit one of Kerstin’s university friends, Caro, who is working there on a placement in one of the EU ministries….
Quite often you have the need to extract parts of a web page you have “scraped” from somewhere else. I won’t go into the actual process of screen scraping, since this is covered in detail on the web, but will show you how to extract the links from the scraped page.
string _post = this.GetScreenScapedHTML();
string _hrefPattern = "<a.*?href=["'](?.*?)["'].*?>(?.*?)";
Regex _hrefRegex = new Regex(_hrefPattern, RegexOptions.Singleline | RegexOptions.IgnorePatternWhitespace | RegexOptions.IgnoreCase);
MatchCollection _mcl = _hrefRegex.Matches(_post);
foreach(Match _ml in _mcl)
string _href = _ml.Groups["url"].Value;
string _name = _ml.Groups["name"].Value;
Response.Write("<a>" + _name + "</a>");
The function “this.GetScreenScrapeHTML()”…
Microsoft offer a sample application to alter SQL Reporting Services from Windows Authentication to Forms Authentication. The sample is not bad, but essentially a bit of a hack. We have had several problems installing it, which I thought I would document. Other developers seem to be having similar problems. The majority of organisations will probably…