PROBLEM IN DISPLAY CONTENT OF ONE PAGE TO ANOTHER PAGE?

Manasavi Rajpoot

Total Post:10

Points:70
Posted by  Manasavi Rajpoot
 1483  View(s)
Ratings:
Rate this:
problem in display content of one page to another page(aspx page)?
please give the sample of its
thanks in advance
  1. Amit Singh

    Post:103

    Points:721
    Re: problem in display content of one page to another page?

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!