i dont really have an example of the code. The idea is a iframe like this
<iframe runat="server" id="iframe1" src="http://someurl.com" />
then your code behind {C#}
protected void Page_Load(object s,EventArgs e)
{
string iframeUrl = iframe1.Attributes["src"].ToString();
TextBox1.Text = iframeUrl;
}