Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,
In my application, am showing a window when user clicks "View Details". this window shows details of different application.

am implementing code like below to show window on button click :

C#
Page.ClientScript.RegisterStartupScript(this.GetType(),  "ViewDocuments", "window.open('" + script + "',null,'height=900,width=1000,status=yes,toolbar=yes,menubar=yes,location=yes,resizable=no');", true);

the script has the url..Which opens window on button click..

But I need to show this content in page itself instead of window.

For example i have a panel. when user clicks the view details button , the content should show in panel instead of the window.

Is that possible..

Thank You
Posted

1 solution

Yes, all you need to do is use an iframe and set the src property to be the url. See http://www.w3schools.com/html/html_iframe.asp[^] for an example of what an iframe is.
 
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