how to include other server side page into an aspx page

Posted by Prakashrajmca under ASP.NET on 2/2/2012 | Points: 10 | Views : 2464 | Status : [Member] | Replies : 2
hi,

I want to include other serverside language page( like php page) into an aspx page, without iframe how could i do that..


Thanks in Advance.




Responses

Posted by: Swapnil on: 2/2/2012 [Member] Starter | Points: 25

Up
0
Down
1. You can create Usercontrol (.ascx) file and place in whatever ASP.Net Page you want to use.
2. Inside user control you can use WebClient.OpenRead("url") method to get HTML of response and put it in the div inside the user control.

Suggestion is for the user control because you can, use it at multiple places else you can put div directly in main page. and start with step 2.

Thanks,
Swapnil.

Thanks and Regards,
Swapnil

Prakashrajmca, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sksamantaray on: 2/3/2012 [Member] Silver | Points: 25

Up
0
Down
http://www.boutell.com/newfaq/creating/include.html
This link may help you

Thanks,
Sanjay

Prakashrajmca, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response