Home > DeveloperSection > Forums > problem in display content of one page to another page?
Manasavi Rajpoot
Manasavi Rajpoot

Total Post:10

Points:70
Posted on    December-03-2010 3:40 AM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 1239  View(s)
Rate this:
problem in display content of one page to another page(aspx page)?
please give the sample of its
thanks in advance


Amit Singh

Total Post:103

Points:721
Posted on    December-03-2010 3:51 AM

we display one page content into another page.
we use the literal control to show the content
we read the content by stream reader

example
 string path = Server.MapPath("~/") + "/Default.aspx";
            using (StreamReader reader = File.OpenText(path))
            {
                string fileContents = reader.ReadToEnd();
 this.Literal1.Text = fileContents;
            }

check this example

Don't want to miss updates? Please click the below button!

Follow MindStick