Click here to Skip to main content
15,908,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
There is a requirement for me. I've sharepoint site. In the document library, some documents are loaded.

The documents full searchable path is loaded as hyperlink in my ASPX page. This is achieved.

Upon clicking the link, what I would like to do is that I would get the content and write in an ASPX page. How to achieve this? Please guide me.
Posted

1 solution

Use an iframe. When the user clicks the link, pass the url to be used to your .aspx page. In Page_Load, get this url and load it in to the iframe.

For example, given below has to be in the .aspx page

ASP.NET
<iframe id="embeddedContent" runat="server" width="98%" height="1000"></iframe>


Then in your code behind, you could just do

C#
protected void Page_Load(object sender, EventArgs e)
{
   embebeddedContent.Attributes["src"] = "some_url"; // the url passed to you.
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900