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...

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.