Archive for November, 2011

Print Page Content by JavaScript

function PrintContent(ctrl)
    {
        //alert(ctrl);
        var DocumentContainer = ctrl;
        //alert(DocumentContainer);
        var WindowObject = window.open('', "TrackHistoryData", 
                              "width=420,height=225,top=250,left=345,toolbars=no,scrollbars=no,status=no,resizable=no");
        //alert(ctrl);
        //alert(DocumentContainer);
        WindowObject.document.write(DocumentContainer.innerHTML);
        //alert(ctrl);
        WindowObject.document.close();
        WindowObject.focus();
        WindowObject.print();
        WindowObject.close();
    }

No Comments

如何利用 IIS7 的 ARR 模組實做 Reverse Proxy 機制

轉自 http://blog.miniasp.com/post/2009/04/13/Using-ARR-to-implement-Reverse-Proxy.aspx

如何利用 IIS7 的 ARR 模組實做 Reverse Proxy 機制

No Comments

Web.sitemap Linking External Web Site with Security Trimming Enabled

If you enable security trimming and you have site-map nodes that correspond to external URLs, set the roles attribute on those nodes to an asterisk (*), which will enable all clients to view the link even though ASP.NET cannot authorize access to the external link.

That’s adding attribute roles=”*” in the sitemapnode element.

No Comments