954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to include a file .aspx to .ascx

I have created the main.aspx as a template and main.aspx has a table with a menu on the side, and a footer. The main part of the page is blank for the body. then i include testmenuright.ascx in the allocated section of the table in main.aspx.

now i want to include menu_right1.aspx to testmenuright.ascx

Keep in mind that .aspx files are being used, so the server side code must be run before displayed...

Aviplo
Light Poster
36 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

Seems that you want to put Page in User control that doesn't make any sense. What I suggest, make one page e.g. main.aspx and all other object should be user controls. Then you can keep user control in user control or in page whatever you like.

sufyan2011
Junior Poster
166 posts since Dec 2011
Reputation Points: 9
Solved Threads: 20
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You