Welcome Guest Search | Active Topics | Sign In | Register

Could CallbackPanels be used as a replacement to iFrames? Options
Saed
Posted: Friday, December 19, 2008 3:21:51 AM
Rank: Advanced Member
Groups: Member

Joined: 10/15/2008
Posts: 45
Hi,
I guess the reason is obvious.

At present, my entire Master reloads when loading a page that targets its ContentPlaceHolder. Therefore, I'm thinking of replacing the ContentPlaceHolder with a CallbackPanel, since I'm still on VS2005 and .NET 2.0, thus, don't have UpdatePanel. This way, when loaded page fires a postback, only what is enclosed withing the CallbackPanel gets reloaded.

In other words, I'm trying to simulate iFrames via CallbackPanels.

Is this approach applicable?

Thanks.

Regards,

Saed Hamdan
"Man may be destroyed but not defeated" -Hemmingway
eo_support
Posted: Friday, December 19, 2008 5:52:28 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
You can use CallbackPanel to resolve the typical master page scenario you described, however that requires you to make significant structural change to your application. The fundamental difference at here is, with MasterPage, you have many .aspx pages. With CallbackPanel, everything is in the same page. Our sample project uses exactly this approach. So you can take a look of that.

This has nothing to do with iframe though. CallbackPanel can never be used to replace iframe because CallbackPanel works within the same page and the exact purpose of iframe is to load another page.

Thanks



You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.