Take this example.
I am creating an HyperLink Control in code behind as
Code:
Dim hlink As New HyperLink
            hlink.NavigateUrl = "~Default.aspx"
If the page is rendered in page the view source the page will be something like

Code:
"<a class='gridlink' href='javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("""", """", 
false, """", ""{0}"", false, true))'>{1}</a>"


Can I get this source without rendering the page ?