Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
ihave two aspx pages leke firstpage.aspx and secondpage.aspx. in firstpage there is one button. when i click this button, can i open the second page as modalpopup extender. is it possible or not? i am new in asp.net. please help me
Posted

You could use an iframe inside your modalpopup which would have a reference to your second page below is an example.

HTML
<iframe src="/secondpage.aspx"></iframe>
 
Share this answer
 
v2
Comments
RaisKazi 9-Jan-12 2:11am    
Edited: Added "pre" tag.
Dalek Dave 9-Jan-12 4:17am    
Spot on.
yes it's possible

even you can use Graybox poup for open another page as popup.

Graybox example
 
Share this answer
 
hi,
you have few options

1) iframe which discribe above.

2) open using javascript
C#
window.open(xxx,xxx,xx) or window.showModalDialog(xxx,xxx,xx,xxx,)


3) Use usercontrol (.ascx) instead of .aspx page. so you can easyly open as modalpopup
 
Share this answer
 
Comments
jincyn 9-Jan-12 11:05am    
when we use iframe how we can avoid aspx close button, scrollbar etc

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