Rendering Issue
-
I created a baseClass to provide Header and Footer for my Page that was inherited from baseClass. If I dont do anything in my Webform.aspx every thing works great, but if I try to write something like this"
public void iSplit() { string a; string[] b; a = "John,Smith,9999,Somewhere In,TX,75038"; b = a.Split(','); /*Response.Write(b[1].ToString() + "here"); Response.Write(b.GetUpperBound(0));*/ PageHTML = PageHTML + ""; for(int i=0; i<= b.GetUpperBound(0); i++) { PageHTML = PageHTML + ""; } PageHTML = PageHTML + " " + (i + 1) + " " + b[i] + " "; } protected override void Render(HtmlTextWriter writer) { writer.Write(PageHTML); }
The only thing I see on page is stuff from PageHTML and my baseClass stuff is all gone!:(( What will be the best way to render my WebPage.aspx contents in a way that I can keep my header and footer as well as my WebPage.aspx contents? Let me know if I need to clerify it a little more. thanks a lot. -
I created a baseClass to provide Header and Footer for my Page that was inherited from baseClass. If I dont do anything in my Webform.aspx every thing works great, but if I try to write something like this"
public void iSplit() { string a; string[] b; a = "John,Smith,9999,Somewhere In,TX,75038"; b = a.Split(','); /*Response.Write(b[1].ToString() + "here"); Response.Write(b.GetUpperBound(0));*/ PageHTML = PageHTML + ""; for(int i=0; i<= b.GetUpperBound(0); i++) { PageHTML = PageHTML + ""; } PageHTML = PageHTML + " " + (i + 1) + " " + b[i] + " "; } protected override void Render(HtmlTextWriter writer) { writer.Write(PageHTML); }
The only thing I see on page is stuff from PageHTML and my baseClass stuff is all gone!:(( What will be the best way to render my WebPage.aspx contents in a way that I can keep my header and footer as well as my WebPage.aspx contents? Let me know if I need to clerify it a little more. thanks a lot.