PROBLEM IN DISPLAY CONTENT OF ONE PAGE TO ANOTHER PAGE?

Total Post:10

Points:70
 1618  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. 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

      Modified On Mar-29-2018 03:33:28 AM

Answer

NEWSLETTER

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