protected void Page_Load(object sender, EventArgs e) 
        { 
            string st, atitle, myurl; 
            if (!IsPostBack) 
            { 
                int ind; 
                st = Request.RawUrl; 
                ind = st.ToLower().IndexOf("src="); 
                if (ind >= 0) 
                { 
                    st = st.Substring(ind + 4); //, st.Length - ind - 4); 
                    //st = st.Replace("src=", ""); 
                } 
                else 
                { 
                    st = "about:blank"; 
                } 
                myurl = st; 
                atitle = Request.RawUrl; 
                ind = atitle.ToLower().IndexOf("title"); 
                if (ind >= 0) 
                { 
                    // '得到title 
                    st = Request.RawUrl; 
                    int indx2 = st.ToLower().IndexOf("src="); 
                    atitle = atitle.Substring(ind + 6, indx2 - 1 - ind - 6); 
                    if (atitle == "") 
                        atitle = "『dacong』"; 
                } 
                else 
                { 
                    atitle = "『dacong』"; 
                }                                 Response.Write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"); 
                Response.Write("<html  xmlns=\"http://www.w3.org/1999/xhtml\">"); 
                Response.Write(" <head>"); 
                Response.Write("    <title>" + atitle + "</title>"); 
                Response.Write(" </head>"); 
                Response.Write(" <frameset border='0' frameSpacing='0' rows='254' frameBorder='0'>"); 
                Response.Write("     <frame name='mainframe' src=" + "\"" + myurl + "\"" + ">"); 
                Response.Write(" </frameset>"); 
                Response.Write("</html>"); 
                Response.Flush(); 
                Response.End(); 
            } 
        } 
可以考虑使用这种方式