tags:

views:

26

answers:

3

Using C#, ASP.Net

In my webpage i have the link for the another web page, if i click the link that should display a another page inside the main page like child page.

Another webpage should display like a popup window in my webpage. And also size of the another webpage should be small. How to do this.

Need Help.

+1  A: 

For the first part you need a master page

For the second part you might need a modal popup or it's jQuery equivalent

However, I don't understand what you mean with

And also size of the another webpage should be small. How to do this.

jao
+1 thought about the master page but was confused with this question.
Shoban
A: 

Another webpage should display like a popup window in my webpage. And also size of the another webpage should be small. How to do this.

Did you mean a jQuery Modal Window?

Shoban
A: 

For displaying one web page within another look at using frames (or an inline frame - iFrame)

The second part of your question I think is asking to be able to display the link in a separate window. To do this, use the target="blank" attribute in the anchor tag. to set the size of the child window you will need to use javascript:

<script type="text/javascript">
function showPopup(url) {
newwindow=window.open(url,'name','height=190,width=520,top=200,left=300,resizable');
if (window.focus) {newwindow.focus()}
}
</script>

So just call the showPopup method from your anchor click event

<a href="http://www.yoururl.com" onclick="showPopup('http://www.yoururl.com');"&gt;link text</a>

Ideally you would move the javascript so that it is no longer inline, but this should work.

Giles