Thursday, October 8, 2009

Frame Page using C#

using System.Text;

Response.Write(GEtFramePage(userid).Tostring());

//the method is following..
public string GEtFramePage(string userid)
{
System.Text.StringBuilder strbuild = new System.Text.StringBuilder();
string BottomURL= "https://gmail.com";
TrafficName = getTrafficName1(userid);
StringBuilder str = new StringBuilder();
str.Append("</body></html><html><head>");
str.Append("<frameset rows=79px,* FRAMEBORDER=NO FRAMESPACING=0 BORDER=0>");
str.Append("<frame id=topframe src=toppage.aspx?userid=" + userid + " frameborder=0 MARGINWIDTH=0 MARGINHEIGHT=0 scrolling=no>");
// str.Append("<iframe src =\""+ BottomURL+"\" width=\"100%\" height=\"100%\">");
str.Append("<frame id=urlframe src=" + BottomURL+ "");
str.Append(" MARGINWIDTH=0 MARGINHEIGHT=0>");
str.Append("</frameset>");
str.Append("</head></html>");
string test = str.ToString();
return str.ToString();
}

No comments:

Post a Comment