Since you are following my suggestion (using object tag),I'm sure that you have deleted the master page and changed all content pages to a webforms (normal page which doesn't have content placeholder).
After you have done that,you must have a page (which we will consider it as a main page) that we wants it to be just like a masterpage but the difference is that it's a normal page,then add the object tag just in the place where your pages are going to be viewed...
To draw the picture for you...do you remember using master page,in the master page you have a content place holder right,and the other pages have a content that loads automatically inside the contentplaceholder of the master page,now in our case we are going to do all that manually but we need to keep the same methodology:
1)We will have a normal page but it's going to be a container for other pages,so create a normal page then put in it the object tag but make sure that it must be runat="server",yeah it means:
(Masterpage + contentplaceholder = normal page + object tag)
2)all other pages that have a content must be changed to a normal page (a page without that content that were used to be created inside the contentplaceholder of the deleted master page)
3)change all hyperlinks (that were supposed to redirect to a different page) to linkbuttons and in the code of those linkbutton,you change the data of the object tag to the url that supposed to be viewed.
for example: if we have an object which it's id is "myObject" and it's runat=server,and the linkbutton was supposed to redirect to default.aspx page which is in the root of your website,code of that linkbutton must be like this:
myObject.Attributes.Add("data",ResolveUrl("~/Default.aspx"));
4)make sure that your linkbuttons are inside an update panel,and the object tag is inside another one too..means 2 update panels,that way when you click on the linkbutton,it wont's post back and the object tag when it loads the default.aspx page is not going to flicker too..
if you are familiar with javascript,you will not need step 3 and 4 and you will do it differently but same concept must be done..(changing the data of object to the url of the hyperlink/link button)
One more thing,all those pages that are going to be viewed inside that object tag (like default.aspx in our example above) shouldn't have DocType in it's html because if you leave it,an ugly border will be created by the object tag around the page,so you need to remove the doctype as I said and make sure that the object tag's border must be 0,that way the border will never appear and the user will think that he is seeing just one page.
I know what you are going to say : so much work to be done but you have no choice...
If you need more help just let me know...OK
Best Regards,
Ala'a Alnajjar
----------------------------------------------------
Please remember to click “Mark as Answer” on the post(s) that help(s) you even if they were for the same person.
Also remember to close the thread by selecting “Resolved”,you will find it in your first post.
Convert C# to VB.net and visa versusMy Webblog