using System;
var link = @"http://test/107281.shtml#34";
var url = link.Substring(0, link.IndexOf("#"));
url.Dump();